aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/nodeset.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2016-12-14 10:31:18 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2016-12-15 09:37:00 +0000
commitdd761e0893ff457103237e8a76fe3fea276698cc (patch)
tree6ed3be5aa2d598ce2e0f9fb3d70d1115eb2763ce /src/lib/corelib/buildgraph/nodeset.cpp
parent15f7a97650a8bce2ac2698bd189397260453e923 (diff)
Fully templatize the PersistentPool class
The old implementation was a wild mix of templates, overloads and, worst of all, implicit assumptions about the types of container items. This combination made it close to impossible to add support for serializing generic containers. Now we have a sensible interface that we can build upon. Change-Id: I82806eaf535c16fc861bededf1b06c681d2128c0 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/nodeset.cpp')
-rw-r--r--src/lib/corelib/buildgraph/nodeset.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/nodeset.cpp b/src/lib/corelib/buildgraph/nodeset.cpp
index 3ed799fae..6ccb70bcd 100644
--- a/src/lib/corelib/buildgraph/nodeset.cpp
+++ b/src/lib/corelib/buildgraph/nodeset.cpp
@@ -75,10 +75,10 @@ void NodeSet::load(PersistentPool &pool)
BuildGraphNode *node = 0;
switch (static_cast<BuildGraphNode::Type>(t)) {
case BuildGraphNode::ArtifactNodeType:
- node = pool.idLoad<Artifact>();
+ node = pool.load<Artifact *>();
break;
case BuildGraphNode::RuleNodeType:
- node = pool.idLoad<RuleNode>();
+ node = pool.load<RuleNode *>();
break;
}
QBS_CHECK(node);