Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-30 01:08:32 +0300
committerHans Goudey <h.goudey@me.com>2020-09-30 01:08:32 +0300
commit23363ca08498b4c9d05321186f608f71b8489406 (patch)
tree0d0eb5bdef14738833249250cbbf0ab31dd9717f /source/blender/editors/space_outliner/outliner_tree.c
parent1b6480ebb76db1769d7bb88be2ac932a3c558fe6 (diff)
Cleanup: Use LISTBASE_FOREACH macro in outliner code
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 22a7019ab91..67be889b140 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -1957,8 +1957,8 @@ static void outliner_sort(ListBase *lb)
}
}
- for (te = lb->first; te; te = te->next) {
- outliner_sort(&te->subtree);
+ LISTBASE_FOREACH (TreeElement *, te_iter, lb) {
+ outliner_sort(&te_iter->subtree);
}
}
@@ -2001,8 +2001,8 @@ static void outliner_collections_children_sort(ListBase *lb)
}
}
- for (te = lb->first; te; te = te->next) {
- outliner_collections_children_sort(&te->subtree);
+ LISTBASE_FOREACH (TreeElement *, te_iter, lb) {
+ outliner_collections_children_sort(&te_iter->subtree);
}
}