diff options
author | Hans Goudey <h.goudey@me.com> | 2020-09-30 01:08:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-09-30 01:08:32 +0300 |
commit | 23363ca08498b4c9d05321186f608f71b8489406 (patch) | |
tree | 0d0eb5bdef14738833249250cbbf0ab31dd9717f /source/blender/editors/space_outliner/outliner_tree.c | |
parent | 1b6480ebb76db1769d7bb88be2ac932a3c558fe6 (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.c | 8 |
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); } } |