From 17fc0409f1ebd5047aad31941582ac0980157cef Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 14 Apr 2014 14:41:10 +0000 Subject: Add missing initializer for depth --- project2/basics/views/autotree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3