aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/artifactcleaner.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-01-22 12:53:40 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2018-01-23 09:16:08 +0000
commitabff4b1b9b9b76e9b00b5a73108852e6f8e3e5d4 (patch)
treed18141f7ffd015fd45904700d19293d6c7b05050 /src/lib/corelib/buildgraph/artifactcleaner.cpp
parent901bf1f7749e79a9fae2999d50131496dcaf4036 (diff)
Make ProductBuildData a proper class with accessors and modifiers
We will need to keep track of some mutating accesses in a follow-up change. Change-Id: I8b3c92f6cca0f5dceb35ef7559cc1357cdf38656 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/artifactcleaner.cpp')
-rw-r--r--src/lib/corelib/buildgraph/artifactcleaner.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/corelib/buildgraph/artifactcleaner.cpp b/src/lib/corelib/buildgraph/artifactcleaner.cpp
index 4266899a9..280005e02 100644
--- a/src/lib/corelib/buildgraph/artifactcleaner.cpp
+++ b/src/lib/corelib/buildgraph/artifactcleaner.cpp
@@ -112,14 +112,15 @@ public:
{
m_product = product;
ArtifactVisitor::visitProduct(product);
- auto it = product->buildData->rescuableArtifactData.begin();
- while (it != product->buildData->rescuableArtifactData.end()) {
+ const AllRescuableArtifactData rescuableArtifactData
+ = product->buildData->rescuableArtifactData();
+ for (auto it = rescuableArtifactData.begin(); it != rescuableArtifactData.end(); ++it) {
Artifact tmp;
tmp.product = product;
tmp.setFilePath(it.key());
tmp.setTimestamp(it.value().timeStamp);
removeArtifactFromDisk(&tmp, m_options.dryRun(), m_logger);
- it = product->buildData->rescuableArtifactData.erase(it);
+ product->buildData->removeFromRescuableArtifactData(it.key());
}
}