diff --git a/src/app/cmdoptions.cpp b/src/app/cmdoptions.cpp index ffb7b8c7c..90c1fcd6a 100644 --- a/src/app/cmdoptions.cpp +++ b/src/app/cmdoptions.cpp @@ -160,7 +160,7 @@ namespace return Utils::String::unquote(parts[1], QLatin1String("'\"")); throw CommandLineParameterError(QObject::tr("Parameter '%1' must follow syntax '%1=%2'", "e.g. Parameter '--webui-port' must follow syntax '--webui-port=value'") - .arg(fullParameter()).arg(QLatin1String(""))); + .arg(fullParameter(), QLatin1String(""))); } QString value(const QProcessEnvironment &env, const QString &defaultValue = {}) const @@ -206,7 +206,7 @@ namespace if (!ok) throw CommandLineParameterError(QObject::tr("Parameter '%1' must follow syntax '%1=%2'", "e.g. Parameter '--webui-port' must follow syntax '--webui-port='") - .arg(fullParameter()).arg(QLatin1String(""))); + .arg(fullParameter(), QLatin1String(""))); return res; } @@ -274,8 +274,7 @@ namespace throw CommandLineParameterError(QObject::tr("Parameter '%1' must follow syntax '%1=%2'", "e.g. Parameter '--add-paused' must follow syntax " "'--add-paused='") - .arg(fullParameter()) - .arg(QLatin1String(""))); + .arg(fullParameter(), QLatin1String(""))); } TriStateBool value(const QProcessEnvironment &env) const