diff options
| author | Christian Kandeler <christian.kandeler@digia.com> | 2013-04-08 18:18:16 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-04-12 14:19:12 +0200 |
| commit | 1d9c080428dcd5e8c1d08598d6542d87f1ca1819 (patch) | |
| tree | 38282acbb95c921595dffec93a6dd99aaa61c24f /src/lib/buildgraph/artifactcleaner.h | |
| parent | f17fd5d56a758a28ef5da04b2be83ed558f7cba6 (diff) | |
| download | qbs-1d9c080428dcd5e8c1d08598d6542d87f1ca1819.tar.gz | |
Remove structural redundancy in project and product classes.
We had two project classes, each holding a list of products
that was structurally identical, except that no BuildProduct
object existed for a disabled ResolvedProduct. The same kind
of duplication also happened for product dependencies.
This patch gets rid of these parallel structures. BuildProject
and BuildProduct are largely being demoted to data holders and are
aggregated by ResolvedProject and ResolvedProduct, respectively.
The resulting project structure should be easier to understand
and maintain.
Change-Id: I68beef60b9e0d62258f6a8337c9015864e18bd80
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/artifactcleaner.h')
| -rw-r--r-- | src/lib/buildgraph/artifactcleaner.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/buildgraph/artifactcleaner.h b/src/lib/buildgraph/artifactcleaner.h index e7390b0e9..e3d06b4f5 100644 --- a/src/lib/buildgraph/artifactcleaner.h +++ b/src/lib/buildgraph/artifactcleaner.h @@ -31,8 +31,7 @@ #include <QList> -#include "forward_decls.h" - +#include <language/forward_decls.h> #include <logging/logger.h> namespace qbs { @@ -45,7 +44,7 @@ class ArtifactCleaner { public: ArtifactCleaner(const Logger &logger, ProgressObserver *observer); - void cleanup(const QList<BuildProductPtr> &products, const CleanOptions &options); + void cleanup(const QList<ResolvedProductPtr> &products, const CleanOptions &options); private: void removeEmptyDirectories(const QString &rootDir, const CleanOptions &options, |
