forked from qt-creator/qt-creator
Utils: Move process arguments class out of QtcProcess
The main QtcProcess interface is nowadays a CommandLine, with no explicit references left to QtcProcess::Arguments and related static helper functions, so it only clutters the QtcProcess class interface So move these items out of QtcProcess, later potentially to a separate file pair. Change-Id: I45c300b656f5b30e2e2717232c855fdd97c2d1d7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1140,9 +1140,9 @@ QByteArray QmakeProFile::cxxDefines() const
|
||||
QByteArray result;
|
||||
foreach (const QString &def, variableValue(Variable::Defines)) {
|
||||
// 'def' is shell input, so interpret it.
|
||||
QtcProcess::SplitError error = QtcProcess::SplitOk;
|
||||
const QStringList args = QtcProcess::splitArgs(def, HostOsInfo::hostOs(), false, &error);
|
||||
if (error != QtcProcess::SplitOk || args.size() == 0)
|
||||
ProcessArgs::SplitError error = ProcessArgs::SplitOk;
|
||||
const QStringList args = ProcessArgs::splitArgs(def, HostOsInfo::hostOs(), false, &error);
|
||||
if (error != ProcessArgs::SplitOk || args.size() == 0)
|
||||
continue;
|
||||
|
||||
result += "#define ";
|
||||
|
||||
Reference in New Issue
Block a user