From 23363ca08498b4c9d05321186f608f71b8489406 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 29 Sep 2020 17:08:32 -0500 Subject: Cleanup: Use LISTBASE_FOREACH macro in outliner code --- source/blender/editors/space_outliner/outliner_select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_outliner/outliner_select.c') diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 602bb351c0f..8034996f5c3 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -1419,8 +1419,8 @@ static void outliner_item_box_select(bContext *C, /* Look at its children. */ if (TSELEM_OPEN(tselem, space_outliner)) { - for (te = te->subtree.first; te; te = te->next) { - outliner_item_box_select(C, space_outliner, scene, rectf, te, select); + LISTBASE_FOREACH (TreeElement *, te_sub, &te->subtree) { + outliner_item_box_select(C, space_outliner, scene, rectf, te_sub, select); } } } -- cgit v1.2.3