forked from qt-creator/qt-creator
Utils: Rename cmd parameter to args in prepareArgs
That's what it is. Change-Id: I45fa1de000cdd25990d3e292bc129a8a12af65c6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -588,8 +588,8 @@ static QString quoteArgWin(const QString &arg)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ProcessArgs ProcessArgs::prepareArgs(const QString &cmd, SplitError *err, OsType osType,
|
||||
const Environment *env, const FilePath *pwd, bool abortOnMeta)
|
||||
ProcessArgs ProcessArgs::prepareArgs(const QString &args, SplitError *err, OsType osType,
|
||||
const Environment *env, const FilePath *pwd, bool abortOnMeta)
|
||||
{
|
||||
QString wdcopy;
|
||||
QString *wd = nullptr;
|
||||
@@ -599,9 +599,9 @@ ProcessArgs ProcessArgs::prepareArgs(const QString &cmd, SplitError *err, OsType
|
||||
}
|
||||
ProcessArgs res;
|
||||
if (osType == OsTypeWindows)
|
||||
res = prepareArgsWin(cmd, err, env, wd);
|
||||
res = prepareArgsWin(args, err, env, wd);
|
||||
else
|
||||
res = createUnixArgs(splitArgs(cmd, osType, abortOnMeta, err, env, wd));
|
||||
res = createUnixArgs(splitArgs(args, osType, abortOnMeta, err, env, wd));
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user