summaryrefslogtreecommitdiff
path: root/fluid/nodes/Tree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/nodes/Tree.cxx')
-rw-r--r--fluid/nodes/Tree.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/fluid/nodes/Tree.cxx b/fluid/nodes/Tree.cxx
index 92b5e7506..a163c4181 100644
--- a/fluid/nodes/Tree.cxx
+++ b/fluid/nodes/Tree.cxx
@@ -89,13 +89,13 @@ Tree::Tree(Project &proj)
Walk the tree and return the node with this uid.
\param[in] uid any number between 0 and 65535
- \return the node with this uid, or nullptr if not found
+ \return the node with this uid, or 0 if not found
*/
Node *Tree::find_by_uid(unsigned short uid) {
for (auto tp: all_nodes()) {
if (tp->get_uid() == uid) return tp;
}
- return nullptr;
+ return 0;
}
@@ -103,7 +103,7 @@ Node *Tree::find_by_uid(unsigned short uid) {
\param[in] text_type 0=source file, 1=header, 2=.fl project file
\param[in] crsr cursor position in text
- \return the node we found or nullptr
+ \return the node we found or 0
*/
Node *Tree::find_in_text(int text_type, int crsr) {
for (auto node: all_nodes()) {
@@ -124,5 +124,5 @@ Node *Tree::find_in_text(int text_type, int crsr) {
break;
}
}
- return nullptr;
+ return 0;
}