aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/inputartifactscanner.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2018-08-02 17:46:34 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-08-20 13:16:20 +0000
commit677ead12a2bb7da5d4de6d3b78e8dd95ba13923c (patch)
tree49d95af19f677333f3cd0e26f6eac17f572e48c8 /src/lib/corelib/buildgraph/inputartifactscanner.cpp
parentf98170dc4411c76bc02e4ed48af29006e7f91ef8 (diff)
corelib: Apply modernize-use-auto
Use more auto. Change-Id: I27e1e2345c6bede459a375663be72ec3370a5e39 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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/corelib/buildgraph/inputartifactscanner.cpp b/src/lib/corelib/buildgraph/inputartifactscanner.cpp
index d183b1879..7255a36ba 100644
--- a/src/lib/corelib/buildgraph/inputartifactscanner.cpp
+++ b/src/lib/corelib/buildgraph/inputartifactscanner.cpp
@@ -84,7 +84,7 @@ static void resolveDepencency(const RawScannedDependency &dependency,
fileDependencyArtifact = static_cast<FileDependency *>(lookupResult);
break;
case FileResourceBase::FileTypeArtifact: {
- Artifact * const foundArtifact = static_cast<Artifact *>(lookupResult);
+ auto const foundArtifact = static_cast<Artifact *>(lookupResult);
if (foundArtifact->product == product)
dependencyInProduct = foundArtifact;
else
@@ -277,8 +277,7 @@ resolved:
if (artifactsToScan && resolvedDependency.file) {
if (resolvedDependency.file->fileType() == FileResourceBase::FileTypeArtifact) {
// Do not scan an artifact that is not built yet: Its contents might still change.
- Artifact * const artifactDependency
- = static_cast<Artifact *>(resolvedDependency.file);
+ auto const artifactDependency = static_cast<Artifact *>(resolvedDependency.file);
if (artifactDependency->artifactType == Artifact::SourceFile
|| artifactDependency->buildState == BuildGraphNode::Built) {
artifactsToScan->push_back(artifactDependency);