refactor: remove unneeded using ProcessState in coreprocess::startprocess
This commit is contained in:
parent
6e6892b6e7
commit
a04568b25f
1 changed files with 2 additions and 4 deletions
|
|
@ -254,9 +254,7 @@ void CoreProcess::startForegroundProcess(const QString &app, const QStringList &
|
|||
|
||||
void CoreProcess::startProcessFromDaemon(const QString &app, const QStringList &args)
|
||||
{
|
||||
using enum ProcessState;
|
||||
|
||||
if (m_processState != Starting) {
|
||||
if (m_processState != ProcessState::Starting) {
|
||||
qFatal("core process must be in starting state");
|
||||
}
|
||||
|
||||
|
|
@ -269,7 +267,7 @@ void CoreProcess::startProcessFromDaemon(const QString &app, const QStringList &
|
|||
return;
|
||||
}
|
||||
|
||||
setProcessState(Started);
|
||||
setProcessState(ProcessState::Started);
|
||||
}
|
||||
|
||||
void CoreProcess::stopForegroundProcess() const
|
||||
|
|
|
|||
Loading…
Reference in a new issue