summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/artifactcleaner.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-04-15 12:35:30 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-04-16 16:43:01 +0200
commit7db38a3e351db1f583bcf82f527fc537cdb33cb1 (patch)
treef0e6c443864f9de799dcf905d162c68567112ebc /src/lib/buildgraph/artifactcleaner.cpp
parentfe817d90428286b4390bbd90efcd08eb4dd2de98 (diff)
downloadqbs-7db38a3e351db1f583bcf82f527fc537cdb33cb1.tar.gz
Pass the project to some operations in addition to a list of products.
The list of products might be empty, in which case the project would not be accessible otherwise. Change-Id: Ifb41413439c64f8fdebee9c3f8826f45ae2fc673 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/artifactcleaner.cpp')
-rw-r--r--src/lib/buildgraph/artifactcleaner.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/buildgraph/artifactcleaner.cpp b/src/lib/buildgraph/artifactcleaner.cpp
index 12228144a..538685b69 100644
--- a/src/lib/buildgraph/artifactcleaner.cpp
+++ b/src/lib/buildgraph/artifactcleaner.cpp
@@ -132,16 +132,12 @@ ArtifactCleaner::ArtifactCleaner(const Logger &logger, ProgressObserver *observe
{
}
-void ArtifactCleaner::cleanup(const QList<ResolvedProductPtr> &products,
- const CleanOptions &options)
+void ArtifactCleaner::cleanup(const ResolvedProjectPtr &project,
+ const QList<ResolvedProductPtr> &products, const CleanOptions &options)
{
m_hasError = false;
- QString configString;
- if (!products.isEmpty()) {
- configString = Tr::tr(" for configuration %1")
- .arg(products.first()->project->id());
- }
+ const QString configString = Tr::tr(" for configuration %1").arg(project->id());
m_observer->initialize(Tr::tr("Cleaning up%1").arg(configString), products.count() + 1);
QSet<QString> directories;