diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-06-15 09:56:54 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-06-15 09:56:54 +0200 |
commit | a46c03c0737ce5e2e5b231e448e3fc112ef1fc59 (patch) | |
tree | 77f8bc134b8eb4515947d219af4095c2865767cc /src/lib/corelib/buildgraph/executor.cpp | |
parent | 9788db406f1a3317e3904cb910eab4d518d9cf8b (diff) | |
parent | d994e54712efb69225d73d93fc57b89a3d39cacb (diff) |
Merge 1.12 into master
Change-Id: I72bbda4537a65bc525afc38a3d280f3c23940c12
Diffstat (limited to 'src/lib/corelib/buildgraph/executor.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/executor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/executor.cpp b/src/lib/corelib/buildgraph/executor.cpp index 8713b9b41..980e2182a 100644 --- a/src/lib/corelib/buildgraph/executor.cpp +++ b/src/lib/corelib/buildgraph/executor.cpp @@ -775,7 +775,7 @@ void Executor::rescueOldBuildData(Artifact *artifact, bool *childrenAdded = 0) bool canRescue = artifact->transformer->commands == rad.commands; if (canRescue) { ResolvedProductPtr pseudoProduct = ResolvedProduct::create(); - for (const RescuableArtifactData::ChildData &cd : qAsConst(rad.children)) { + for (const RescuableArtifactData::ChildData &cd : rad.children) { pseudoProduct->name = cd.productName; pseudoProduct->multiplexConfigurationId = cd.productMultiplexId; Artifact * const child = lookupArtifact(pseudoProduct, m_project->buildData.get(), @@ -828,7 +828,7 @@ void Executor::rescueOldBuildData(Artifact *artifact, bool *childrenAdded = 0) if (canRescue) { const TypeFilter<Artifact> childArtifacts(artifact->children); - const int newChildCount = childrenToConnect.size() + const size_t newChildCount = childrenToConnect.size() + std::distance(childArtifacts.begin(), childArtifacts.end()); QBS_CHECK(newChildCount >= rad.children.size()); if (newChildCount > rad.children.size()) { |