diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-07-31 14:47:56 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-31 17:37:43 +0200 |
commit | 1eef55e98f7dddf0aacbf43f369d7bd11b06745e (patch) | |
tree | e25acef27ab1d5915dd237eb0b9ca263a4945539 /src/lib/corelib/language/language.cpp | |
parent | 3b4f5d6acae1338e8f188d02b6348b0c20727a16 (diff) |
add getter/setters for Artifact::fileTags
The setters take care of keeping the product's artifact-by-filetags hash
up to date. Before, one had to set up the artifact's file tags before
insertArtifactToProduct was called. Otherwise the hash didn't get updated.
Change-Id: Ibb530d2c992d72c0a99152009b4e6eecbf770098
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/language/language.cpp')
-rw-r--r-- | src/lib/corelib/language/language.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/corelib/language/language.cpp b/src/lib/corelib/language/language.cpp index 56a560d44..20ef70b52 100644 --- a/src/lib/corelib/language/language.cpp +++ b/src/lib/corelib/language/language.cpp @@ -343,7 +343,7 @@ QString Rule::toString() const bool Rule::acceptsAsInput(Artifact *artifact) const { - return artifact->fileTags.matches(inputs); + return artifact->fileTags().matches(inputs); } FileTags Rule::staticOutputFileTags() const @@ -705,7 +705,7 @@ ArtifactSet ResolvedProduct::targetArtifacts() const QBS_CHECK(buildData); ArtifactSet taSet; foreach (Artifact * const a, buildData->rootArtifacts()) { - if (a->fileTags.matches(fileTags)) + if (a->fileTags().matches(fileTags)) taSet << a; } return taSet; @@ -731,7 +731,7 @@ static QStringList findGeneratedFiles(const Artifact *base, const FileTags &tags { QStringList result; foreach (const Artifact *parent, base->parentArtifacts()) { - if (tags.isEmpty() || parent->fileTags.matches(tags)) + if (tags.isEmpty() || parent->fileTags().matches(tags)) result << parent->filePath(); } |