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.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/nodes/Tree.cxx b/fluid/nodes/Tree.cxx
index a163c4181..d437b5bd3 100644
--- a/fluid/nodes/Tree.cxx
+++ b/fluid/nodes/Tree.cxx
@@ -92,7 +92,7 @@ Tree::Tree(Project &proj)
\return the node with this uid, or 0 if not found
*/
Node *Tree::find_by_uid(unsigned short uid) {
- for (auto tp: all_nodes()) {
+ for (Node *tp: all_nodes()) {
if (tp->get_uid() == uid) return tp;
}
return 0;
@@ -106,7 +106,7 @@ Node *Tree::find_by_uid(unsigned short uid) {
\return the node we found or 0
*/
Node *Tree::find_in_text(int text_type, int crsr) {
- for (auto node: all_nodes()) {
+ for (Node *node: all_nodes()) {
switch (text_type) {
case 0:
if (crsr >= node->code1_start && crsr < node->code1_end) return node;