aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/depscanner.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-10-24 11:41:18 -0700
committerJake Petroules <jake.petroules@qt.io>2017-11-22 16:15:21 +0000
commit1445ea6d69146b2c05efbfe142c557f9bf724025 (patch)
treebf18018fbd4254f1aeb624ab61a9862e4aa8a951 /src/lib/corelib/buildgraph/depscanner.cpp
parentc8d0d4fe646e60daea678602d7ca71e492fb65ad (diff)
STL compatibility: use push_back() instead of append()
...or operator<< if the argument was itself a list, or brace init where appropriate. This is a simple find and replace with manual sanity check. Change-Id: I94b79cbf3752192dd258001bf1dfcd46f58ca352 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/depscanner.cpp')
-rw-r--r--src/lib/corelib/buildgraph/depscanner.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/corelib/buildgraph/depscanner.cpp b/src/lib/corelib/buildgraph/depscanner.cpp
index e0fae57c9..8b5a0a0fe 100644
--- a/src/lib/corelib/buildgraph/depscanner.cpp
+++ b/src/lib/corelib/buildgraph/depscanner.cpp
@@ -232,9 +232,9 @@ QStringList UserDependencyScanner::evaluate(Artifact *artifact, const ScriptFunc
QScriptValueList args;
args.reserve(3);
- args.append(m_global.property(QString::fromLatin1("project")));
- args.append(m_global.property(QString::fromLatin1("product")));
- args.append(Transformer::translateFileConfig(m_engine, artifact, m_scanner->module->name));
+ args.push_back(m_global.property(QString::fromLatin1("project")));
+ args.push_back(m_global.property(QString::fromLatin1("product")));
+ args.push_back(Transformer::translateFileConfig(m_engine, artifact, m_scanner->module->name));
m_engine->setGlobalObject(m_global);
QScriptValue &function = script->scriptFunction;
@@ -259,7 +259,7 @@ QStringList UserDependencyScanner::evaluate(Artifact *artifact, const ScriptFunc
for (qint32 i = 0; i < count; ++i) {
QScriptValue item = result.property(i);
if (item.isValid() && !item.isUndefined())
- list.append(item.toString());
+ list.push_back(item.toString());
}
}
return list;