From 1ce74f4c5e7d9e9ccb854c22fa8540ebcaded154 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 30 Jul 2013 10:18:40 +0200 Subject: move file dependencies to dedicated class File dependencies are a very simple variant of artifact. We save space and structure the code more clearly by introducing the FileDependency class. Change-Id: I36b95794f9d6d3d739ea4836ebc831848a89de98 Reviewed-by: Christian Kandeler --- src/lib/buildgraph/buildgraphloader.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/buildgraph/buildgraphloader.h') diff --git a/src/lib/buildgraph/buildgraphloader.h b/src/lib/buildgraph/buildgraphloader.h index 86907cddc..31fe52cad 100644 --- a/src/lib/buildgraph/buildgraphloader.h +++ b/src/lib/buildgraph/buildgraphloader.h @@ -41,6 +41,7 @@ class SetupProjectParameters; namespace Internal { class ArtifactList; +class FileDependency; class FileTime; class BuildGraphLoadResult @@ -83,7 +84,8 @@ private: void removeArtifactAndExclusiveDependents(Artifact *artifact, ArtifactList *removedArtifacts = 0); bool checkForPropertyChanges(const TransformerPtr &restoredTrafo, const ResolvedProductPtr &freshProduct); - void replaceFileDependencyWithArtifact(Artifact *filedep, Artifact *artifact); + void replaceFileDependencyWithArtifact(const ResolvedProductPtr &fileDepProduct, + FileDependency *filedep, Artifact *artifact); RulesEvaluationContextPtr m_evalContext; BuildGraphLoadResult m_result; -- cgit v1.2.1