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
commit17fc0409f1ebd5047aad31941582ac0980157cef (patch)
treef0f7a3cc5f5eadb1e062a9286c39d1d54100af34
parentAdd component for build a tree view from a flat row set based on sequential i... (diff)
downloadproject2-17fc0409f1ebd5047aad31941582ac0980157cef.tar.bz2
project2-17fc0409f1ebd5047aad31941582ac0980157cef.tar.xz
project2-17fc0409f1ebd5047aad31941582ac0980157cef.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) {