summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-04-14 14:41:10 +0000
committerrandomdan <randomdan@localhost>2014-04-14 14:41:10 +0000
commit9ce160607a1fa64d7bc691b52c99fd94ac17c7d6 (patch)
treef0f7a3cc5f5eadb1e062a9286c39d1d54100af34
parentAdd component for build a tree view from a flat row set based on sequential i... (diff)
downloadproject2-9ce160607a1fa64d7bc691b52c99fd94ac17c7d6.tar.bz2
project2-9ce160607a1fa64d7bc691b52c99fd94ac17c7d6.tar.xz
project2-9ce160607a1fa64d7bc691b52c99fd94ac17c7d6.zip
Add missing initializer for depth
-rw-r--r--project2/basics/views/autotree.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/basics/views/autotree.cpp b/project2/basics/views/autotree.cpp
index d957040..bef9695 100644
--- a/project2/basics/views/autotree.cpp
+++ b/project2/basics/views/autotree.cpp
@@ -13,7 +13,8 @@ AutoTree::AutoTree(ScriptNodePtr p) :
SourceObject(p),
View(p),
RowProcessor(p),
- root(new AutoTreeNode(p->child("tree"), 0, 0))
+ root(new AutoTreeNode(p->child("tree"), 0, 0)),
+ depth(0)
{
auto node = root;
while (node) {