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/rulegraph.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/rulegraph.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/rulegraph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/rulegraph.cpp b/src/lib/corelib/buildgraph/rulegraph.cpp index e782b3f32..24749767e 100644 --- a/src/lib/corelib/buildgraph/rulegraph.cpp +++ b/src/lib/corelib/buildgraph/rulegraph.cpp @@ -56,7 +56,7 @@ void RuleGraph::build(const QList<RulePtr> &rules, const FileTags &productFileTa m_rules.reserve(rules.size()); for (const RulePtr &rule : rules) { for (const FileTag &fileTag : rule->collectedOutputFileTags()) - m_outputFileTagToRule[fileTag].append(rule.get()); + m_outputFileTagToRule[fileTag].push_back(rule.get()); insert(rule); } @@ -68,7 +68,7 @@ void RuleGraph::build(const QList<RulePtr> &rules, const FileTags &productFileTa inFileTags += rule->auxiliaryInputs; inFileTags += rule->explicitlyDependsOn; for (const FileTag &fileTag : qAsConst(inFileTags)) { - inputFileTagToRule[fileTag].append(rule.get()); + inputFileTagToRule[fileTag].push_back(rule.get()); for (const Rule * const producingRule : m_outputFileTagToRule.value(fileTag)) { if (!producingRule->collectedOutputFileTags().intersects( rule->excludedAuxiliaryInputs)) { |