diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-10-24 11:41:18 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-11-22 16:15:21 +0000 |
commit | 1445ea6d69146b2c05efbfe142c557f9bf724025 (patch) | |
tree | bf18018fbd4254f1aeb624ab61a9862e4aa8a951 /src/lib/corelib/buildgraph/environmentscriptrunner.cpp | |
parent | c8d0d4fe646e60daea678602d7ca71e492fb65ad (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/environmentscriptrunner.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/environmentscriptrunner.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/corelib/buildgraph/environmentscriptrunner.cpp b/src/lib/corelib/buildgraph/environmentscriptrunner.cpp index 34c80fd0a..6a143c16f 100644 --- a/src/lib/corelib/buildgraph/environmentscriptrunner.cpp +++ b/src/lib/corelib/buildgraph/environmentscriptrunner.cpp @@ -90,9 +90,9 @@ static QList<const ResolvedModule*> topSortModules(const QHash<const ResolvedMod for (const ResolvedModule * const m : modules) { if (m->name.isNull()) continue; - result.append(topSortModules(moduleChildren, moduleChildren.value(m), seenModuleNames)); + result << topSortModules(moduleChildren, moduleChildren.value(m), seenModuleNames); if (seenModuleNames.insert(m->name).second) - result.append(m); + result.push_back(m); } return result; } @@ -141,8 +141,8 @@ void EnvironmentScriptRunner::setupEnvironment() for (const QString &moduleName : qAsConst(module->moduleDependencies)) { const ResolvedModule * const depmod = moduleMap.value(moduleName); QBS_ASSERT(depmod, return); - moduleParents[depmod].append(module.get()); - moduleChildren[module.get()].append(depmod); + moduleParents[depmod].push_back(module.get()); + moduleChildren[module.get()].push_back(depmod); } } @@ -150,7 +150,7 @@ void EnvironmentScriptRunner::setupEnvironment() for (const ResolvedModuleConstPtr &module : m_product->modules) { if (moduleParents.value(module.get()).isEmpty()) { QBS_ASSERT(module, return); - rootModules.append(module.get()); + rootModules.push_back(module.get()); } } |