summaryrefslogtreecommitdiff
path: root/src/Tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tree.h')
-rw-r--r--src/Tree.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Tree.h b/src/Tree.h
index fec4464..88c55cb 100644
--- a/src/Tree.h
+++ b/src/Tree.h
@@ -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; }
contact: Jan Huwald // Impressum