summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/RootTreeItem.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-05-01 22:41:12 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-05-01 22:41:12 -0400
commitc82f833ffdeeb96df01acc3db1d9470723a2eb2f (patch)
tree52d57a5758b08ac37389cee911cce8b3369d2b7a /sigmodr/tree/RootTreeItem.cpp
parent7bfa5c29faf7f593b81e6917f81364da1837a73a (diff)
downloadsigen-c82f833ffdeeb96df01acc3db1d9470723a2eb2f.tar.gz
sigen-c82f833ffdeeb96df01acc3db1d9470723a2eb2f.tar.xz
sigen-c82f833ffdeeb96df01acc3db1d9470723a2eb2f.zip
Add factory method so that the root item can create new ones
Diffstat (limited to 'sigmodr/tree/RootTreeItem.cpp')
-rw-r--r--sigmodr/tree/RootTreeItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmodr/tree/RootTreeItem.cpp b/sigmodr/tree/RootTreeItem.cpp
index 9e55e0e6..08cc7ce7 100644
--- a/sigmodr/tree/RootTreeItem.cpp
+++ b/sigmodr/tree/RootTreeItem.cpp
@@ -31,5 +31,5 @@ RootTreeItem::RootTreeItem() :
void RootTreeItem::addGame(Game* game)
{
-// m_children.append(new TreeItem(EntryGame, game, this));
+ m_children.append(newTreeItem(EntryGame, game, this));
}