aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/inputartifactscanner.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/inputartifactscanner.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/inputartifactscanner.cpp')
-rw-r--r--src/lib/corelib/buildgraph/inputartifactscanner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/corelib/buildgraph/inputartifactscanner.cpp b/src/lib/corelib/buildgraph/inputartifactscanner.cpp
index 31e54486e..13314eb52 100644
--- a/src/lib/corelib/buildgraph/inputartifactscanner.cpp
+++ b/src/lib/corelib/buildgraph/inputartifactscanner.cpp
@@ -149,7 +149,7 @@ void InputArtifactScanner::scanForFileDependencies(Artifact *inputArtifact)
InputArtifactScannerContext::CacheItem &cacheItem = m_context->cache[inputArtifact->properties];
Set<QString> visitedFilePaths;
QList<FileResourceBase *> filesToScan;
- filesToScan.append(inputArtifact);
+ filesToScan.push_back(inputArtifact);
const Set<DependencyScanner *> scanners = scannersForArtifact(inputArtifact);
if (scanners.empty())
return;
@@ -270,11 +270,11 @@ resolved:
// Do not scan an artifact that is not built yet: Its contents might still change.
if (artifactDependency->artifactType == Artifact::SourceFile
|| artifactDependency->buildState == BuildGraphNode::Built) {
- artifactsToScan->append(artifactDependency);
+ artifactsToScan->push_back(artifactDependency);
}
} else {
// Add file dependency to the next round of scanning.
- artifactsToScan->append(resolvedDependency.file);
+ artifactsToScan->push_back(resolvedDependency.file);
}
}
}