aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/buildgraphloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/buildgraph/buildgraphloader.cpp')
-rw-r--r--src/lib/corelib/buildgraph/buildgraphloader.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/corelib/buildgraph/buildgraphloader.cpp b/src/lib/corelib/buildgraph/buildgraphloader.cpp
index 289dcea26..bf6c30dcd 100644
--- a/src/lib/corelib/buildgraph/buildgraphloader.cpp
+++ b/src/lib/corelib/buildgraph/buildgraphloader.cpp
@@ -438,11 +438,10 @@ void BuildGraphLoader::trackProjectChanges()
allNewlyResolvedProducts);
}
- for (auto it = m_changedSourcesByProduct.cbegin(); it != m_changedSourcesByProduct.cend();
- ++it) {
- const ResolvedProductPtr product = m_freshProductsByName.value(it->first);
+ for (const auto &kv : m_changedSourcesByProduct) {
+ const ResolvedProductPtr product = m_freshProductsByName.value(kv.first);
QBS_CHECK(!!product);
- for (const SourceArtifactConstPtr &sa : it->second)
+ for (const SourceArtifactConstPtr &sa : kv.second)
updateArtifactFromSourceArtifact(product, sa);
}