summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/productbuilddata.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-07-30 10:18:40 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-08-01 11:10:12 +0200
commit1ce74f4c5e7d9e9ccb854c22fa8540ebcaded154 (patch)
tree9fd3169fbe0406501a6e80923a2661d1f7718471 /src/lib/buildgraph/productbuilddata.cpp
parent7e547f8458c0305c33e4ee35b40fe6f480a2eff3 (diff)
downloadqbs-1ce74f4c5e7d9e9ccb854c22fa8540ebcaded154.tar.gz
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 <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/buildgraph/productbuilddata.cpp')
-rw-r--r--src/lib/buildgraph/productbuilddata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/buildgraph/productbuilddata.cpp b/src/lib/buildgraph/productbuilddata.cpp
index cc0596139..50f53c3d7 100644
--- a/src/lib/buildgraph/productbuilddata.cpp
+++ b/src/lib/buildgraph/productbuilddata.cpp
@@ -75,7 +75,7 @@ void ProductBuildData::load(PersistentPool &pool)
artifact->fileDependencies.clear();
artifact->fileDependencies.reserve(k);
for (; --k >= 0;)
- artifact->fileDependencies.insert(pool.idLoad<Artifact>());
+ artifact->fileDependencies.insert(pool.idLoad<FileDependency>());
}
// other data
@@ -102,8 +102,8 @@ void ProductBuildData::store(PersistentPool &pool) const
foreach (Artifact * n, artifact->children)
pool.store(n);
pool.stream() << artifact->fileDependencies.count();
- foreach (Artifact * n, artifact->fileDependencies)
- pool.store(n);
+ foreach (FileDependency *dependency, artifact->fileDependencies)
+ pool.store(dependency);
}
// other data