refactor: CoreProcess::addGenericArgs remove unused processMode var
This commit is contained in:
parent
88efc14bc2
commit
e21c4cdd4d
2 changed files with 3 additions and 3 deletions
|
|
@ -361,7 +361,7 @@ void CoreProcess::start(std::optional<ProcessMode> processModeOption)
|
||||||
QString app;
|
QString app;
|
||||||
QStringList args;
|
QStringList args;
|
||||||
|
|
||||||
addGenericArgs(args, processMode);
|
addGenericArgs(args);
|
||||||
|
|
||||||
if (mode() == Server && !addServerArgs(args, app)) {
|
if (mode() == Server && !addServerArgs(args, app)) {
|
||||||
qWarning("failed to add server args for core process, aborting start");
|
qWarning("failed to add server args for core process, aborting start");
|
||||||
|
|
@ -459,7 +459,7 @@ void CoreProcess::cleanup()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CoreProcess::addGenericArgs(QStringList &args, const ProcessMode processMode) const
|
bool CoreProcess::addGenericArgs(QStringList &args) const
|
||||||
{
|
{
|
||||||
args << "-f"
|
args << "-f"
|
||||||
<< "--debug" << Settings::logLevelText();
|
<< "--debug" << Settings::logLevelText();
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ private:
|
||||||
void startProcessFromDaemon(const QString &app, const QStringList &args);
|
void startProcessFromDaemon(const QString &app, const QStringList &args);
|
||||||
void stopForegroundProcess() const;
|
void stopForegroundProcess() const;
|
||||||
void stopProcessFromDaemon();
|
void stopProcessFromDaemon();
|
||||||
bool addGenericArgs(QStringList &args, const ProcessMode processMode) const;
|
bool addGenericArgs(QStringList &args) const;
|
||||||
bool addServerArgs(QStringList &args, QString &app);
|
bool addServerArgs(QStringList &args, QString &app);
|
||||||
bool addClientArgs(QStringList &args, QString &app);
|
bool addClientArgs(QStringList &args, QString &app);
|
||||||
QString persistServerConfig() const;
|
QString persistServerConfig() const;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue