forked from qt-creator/qt-creator
Utils: Pass an optional OsType parameter to CommandLine::addArg
... and extend the idea to addArgs(list) Change-Id: Ia5423ee5ab96835b4adc23b72749e9c13892ee83 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -74,14 +74,15 @@ namespace Utils {
|
||||
|
||||
*/
|
||||
|
||||
void CommandLine::addArg(const QString &arg)
|
||||
void CommandLine::addArg(const QString &arg, OsType osType)
|
||||
{
|
||||
QtcProcess::addArg(&m_arguments, arg);
|
||||
QtcProcess::addArg(&m_arguments, arg, osType);
|
||||
}
|
||||
|
||||
void CommandLine::addArgs(const QStringList &inArgs)
|
||||
void CommandLine::addArgs(const QStringList &inArgs, OsType osType)
|
||||
{
|
||||
QtcProcess::addArgs(&m_arguments, inArgs);
|
||||
for (const QString &arg : inArgs)
|
||||
addArg(arg, osType);
|
||||
}
|
||||
|
||||
void CommandLine::addArgs(const QString &inArgs)
|
||||
|
||||
Reference in New Issue
Block a user