diff options
| author | Christian Kandeler <christian.kandeler@digia.com> | 2012-11-11 11:54:03 +0100 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2012-11-12 13:58:47 +0100 |
| commit | 40b8f64e4e72d8d6a651b485205cceb56705c22c (patch) | |
| tree | fe013ab27292553e57077784f39ffc477df76939 /src/lib/buildgraph/artifactcleaner.cpp | |
| parent | fc318ee469aa30667af73a2b96425762e4d7fb63 (diff) | |
| download | qbs-40b8f64e4e72d8d6a651b485205cceb56705c22c.tar.gz | |
Give the ArtifactVisitor functions unique names.
Overloading and polymorphism don't mix well.
Also remove the visit() functions taking lists. They are overkill.
Change-Id: I36571e19ad5551f996d46ef1f9315fb17d754ac1
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/artifactcleaner.cpp')
| -rw-r--r-- | src/lib/buildgraph/artifactcleaner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/buildgraph/artifactcleaner.cpp b/src/lib/buildgraph/artifactcleaner.cpp index a4ded0a62..d19fb7c37 100644 --- a/src/lib/buildgraph/artifactcleaner.cpp +++ b/src/lib/buildgraph/artifactcleaner.cpp @@ -94,10 +94,10 @@ public: { } - void visit(const BuildProduct::ConstPtr &product) + void visitProduct(const BuildProduct::ConstPtr &product) { m_product = product; - ArtifactVisitor::visit(product); + ArtifactVisitor::visitProduct(product); } const QSet<QString> &directories() const { return m_directories; } @@ -128,7 +128,7 @@ void ArtifactCleaner::cleanup(const QList<BuildProduct::ConstPtr> &products, boo QSet<QString> directories; foreach (const BuildProduct::ConstPtr &product, products) { CleanupVisitor visitor(!buildOptions.keepGoing, buildOptions.dryRun, removeAll); - visitor.visit(product); + visitor.visitProduct(product); directories.unite(visitor.directories()); } |
