diff options
Diffstat (limited to 'src/Tree.h')
-rw-r--r-- | src/Tree.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -8,9 +8,7 @@ using std::string; class Tree { public: - Tree() { - this->root_node = NULL; - } + Tree(const AbstractNode *root = NULL) : root_node(root) {} ~Tree() {} void setRoot(const AbstractNode *root) { this->root_node = root; } |