diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 18:20:22 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 18:42:45 +0300 |
commit | f254f66587f257b7de252644dd73574ad27a32af (patch) | |
tree | 9b0836087790ee66748724e6d34df9c85f486e61 /source/blender/editors/space_outliner/outliner_collections.c | |
parent | 3aa53b361d135e3620b83a7cf0766c92c41aaccb (diff) |
Cleanup: Editors/Space/Outliner, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/space_outliner` module.
No functional changes.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_collections.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_collections.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c index 131491fcc40..4b012934ab7 100644 --- a/source/blender/editors/space_outliner/outliner_collections.c +++ b/source/blender/editors/space_outliner/outliner_collections.c @@ -70,7 +70,7 @@ bool outliner_is_collection_tree_element(const TreeElement *te) TSE_VIEW_COLLECTION_BASE)) { return true; } - else if (tselem->type == 0 && te->idcode == ID_GR) { + if (tselem->type == 0 && te->idcode == ID_GR) { return true; } @@ -89,11 +89,11 @@ Collection *outliner_collection_from_tree_element(const TreeElement *te) LayerCollection *lc = te->directdata; return lc->collection; } - else if (ELEM(tselem->type, TSE_SCENE_COLLECTION_BASE, TSE_VIEW_COLLECTION_BASE)) { + if (ELEM(tselem->type, TSE_SCENE_COLLECTION_BASE, TSE_VIEW_COLLECTION_BASE)) { Scene *scene = (Scene *)tselem->id; return scene->master_collection; } - else if (tselem->type == 0 && te->idcode == ID_GR) { + if (tselem->type == 0 && te->idcode == ID_GR) { return (Collection *)tselem->id; } @@ -338,7 +338,7 @@ void outliner_collection_delete( skip = true; break; } - else if (parent->flag & COLLECTION_IS_MASTER) { + if (parent->flag & COLLECTION_IS_MASTER) { Scene *parent_scene = BKE_collection_master_scene_search(bmain, parent); if (ID_IS_LINKED(parent_scene)) { skip = true; @@ -1194,7 +1194,7 @@ static bool collection_flag_poll(bContext *C, bool clear, int flag) if (clear && (collection->flag & flag)) { return true; } - else if (!clear && !(collection->flag & flag)) { + if (!clear && !(collection->flag & flag)) { return true; } |