forked from qt-creator/qt-creator
Replace occurrences of QStringList() << pattern
Change-Id: I598d8c06193c2e72435a76165d1afc9ee3465b48 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -659,9 +659,8 @@ bool QtcProcess::prepareCommand(const QString &command, const QString &arguments
|
||||
if (err != QtcProcess::FoundMeta)
|
||||
return false;
|
||||
*outCmd = QLatin1String("/bin/sh");
|
||||
*outArgs = Arguments::createUnixArgs(QStringList()
|
||||
<< QLatin1String("-c")
|
||||
<< (quoteArg(command) + QLatin1Char(' ') + arguments));
|
||||
*outArgs = Arguments::createUnixArgs(
|
||||
QStringList({ "-c", (quoteArg(command) + ' ' + arguments) }));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user