diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-06-13 16:03:04 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-06-13 18:57:05 +0200 |
commit | 43dbacb0d1ccccb49f585bf7bc9ece262d1a78b2 (patch) | |
tree | 0901708e2c9aa7d9fbd528d739282d8f2f69d645 /src/lib/corelib/buildgraph | |
parent | c230637f52f54db2bde1632041489505a03ab7ae (diff) |
fix graph traversal of ArtifactVisitor
We must return false in all visit methods to indicate that we don't
want to traverse children.
Task-number: QBS-617
Change-Id: I24226b2b83a5deee394ef1e2fd8dee84dbabf28e
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/buildgraph')
-rw-r--r-- | src/lib/corelib/buildgraph/artifactvisitor.cpp | 6 | ||||
-rw-r--r-- | src/lib/corelib/buildgraph/artifactvisitor.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/artifactvisitor.cpp b/src/lib/corelib/buildgraph/artifactvisitor.cpp index e8f438c9b..ab7858826 100644 --- a/src/lib/corelib/buildgraph/artifactvisitor.cpp +++ b/src/lib/corelib/buildgraph/artifactvisitor.cpp @@ -54,6 +54,12 @@ void ArtifactVisitor::visitProject(const ResolvedProjectConstPtr &project) visitProduct(product); } +bool ArtifactVisitor::visit(RuleNode *ruleNode) +{ + Q_UNUSED(ruleNode); + return false; +} + bool ArtifactVisitor::visit(Artifact *artifact) { QBS_CHECK(artifact); diff --git a/src/lib/corelib/buildgraph/artifactvisitor.h b/src/lib/corelib/buildgraph/artifactvisitor.h index 2cd67a8f8..79e39c1cc 100644 --- a/src/lib/corelib/buildgraph/artifactvisitor.h +++ b/src/lib/corelib/buildgraph/artifactvisitor.h @@ -47,6 +47,7 @@ public: void visitProduct(const ResolvedProductConstPtr &product); void visitProject(const ResolvedProjectConstPtr &project); + bool visit(RuleNode *ruleNode); bool visit(Artifact *artifact); private: |