diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-07-16 17:30:01 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-17 13:08:11 +0200 |
commit | 32c4d3d7d26937c8f2a0f2f99add2eb0b0f1e503 (patch) | |
tree | b61d49ff5ec5730040404e31f4edc7563000ef34 /src/lib/corelib/buildgraph/productbuilddata.h | |
parent | 1c982622acd9e38096dd9feabe8e5a4c129df31c (diff) |
fix calculation of added/removed artifacts
We kept lists of added and removed artifacts in ProductBuildData. It was
never quite clear when to invalidate those lists, which led to QBS-635.
Instead we let the RuleNode decide which artifacts it considers as
"added or removed for this rule".
Task-number: QBS-635
Change-Id: I390e0ab775c695045c6e91ade3ac7326692cb314
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/buildgraph/productbuilddata.h')
-rw-r--r-- | src/lib/corelib/buildgraph/productbuilddata.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/productbuilddata.h b/src/lib/corelib/buildgraph/productbuilddata.h index 07193ea9a..89f71d4ad 100644 --- a/src/lib/corelib/buildgraph/productbuilddata.h +++ b/src/lib/corelib/buildgraph/productbuilddata.h @@ -64,8 +64,6 @@ public: typedef QHash<FileTag, ArtifactSet> ArtifactSetByFileTag; ArtifactSetByFileTag artifactsByFileTag; - ArtifactSetByFileTag addedArtifactsByFileTag; - ArtifactSetByFileTag removedArtifactsByFileTag; typedef QHash<RuleConstPtr, ArtifactSet> ArtifactSetByRule; ArtifactSetByRule artifactsWithChangedInputsPerRule; @@ -76,6 +74,8 @@ private: }; void addArtifactToSet(Artifact *artifact, ProductBuildData::ArtifactSetByFileTag &container); +void removeArtifactFromSetByFileTag(Artifact *artifact, const FileTag &fileTag, + ProductBuildData::ArtifactSetByFileTag &container); void removeArtifactFromSet(Artifact *artifact, ProductBuildData::ArtifactSetByFileTag &container); } // namespace Internal |