diff options
Diffstat (limited to 'fluid/nodes/Tree.h')
| -rw-r--r-- | fluid/nodes/Tree.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fluid/nodes/Tree.h b/fluid/nodes/Tree.h index f494af651..f1a338630 100644 --- a/fluid/nodes/Tree.h +++ b/fluid/nodes/Tree.h @@ -31,7 +31,7 @@ class Tree { // A class that can iterate over the entire scene graph. class Iterator { - Node *type_ = nullptr; + Node *type_ = 0; bool only_selected_ = false; public: explicit Iterator(Node *t, bool only_selected); @@ -47,12 +47,12 @@ class Tree { public: Container(Tree &tree, bool only_selected) : tree_(tree), only_selected_(only_selected) { } Iterator begin() { return Iterator(tree_.first, only_selected_); } - Iterator end() { return Iterator(nullptr, only_selected_); } + Iterator end() { return Iterator(0, only_selected_); } }; // A class that iterate over the scene graph, but returns only nodes of type widget. class WIterator { - Node *type_ = nullptr; + Node *type_ = 0; bool only_selected_ = false; public: explicit WIterator(Node *t, bool only_selected); @@ -68,7 +68,7 @@ class Tree { public: WContainer(Tree &tree, bool only_selected) : tree_(tree), only_selected_(only_selected) { } WIterator begin() { return WIterator(tree_.first, only_selected_); } - WIterator end() { return WIterator(nullptr, only_selected_); } + WIterator end() { return WIterator(0, only_selected_); } }; /// Link Tree class to the project. @@ -76,10 +76,10 @@ class Tree { public: - Node *first = nullptr; - Node *last = nullptr; - Node *current = nullptr; // most recently picked object - Node *current_dnd = nullptr; + Node *first = 0; + Node *last = 0; + Node *current = 0; // most recently picked object + Node *current_dnd = 0; /// If this is greater zero, widgets will be allowed to lay out their children. int allow_layout = 0; @@ -87,7 +87,7 @@ public: Tree(Project &proj); - bool empty() { return first == nullptr; } + bool empty() { return first == 0; } // Iterators: `for (auto &n: tree.all_nodes()) { n.print(); } Container all_nodes() { return Container(*this, false); } |
