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_select.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_select.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_select.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 8a408a41897..5f025f08130 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -520,9 +520,7 @@ static eOLDrawState tree_element_active_camera(bContext *C, return OL_DRAWSEL_NONE; } - else { - return scene->camera == ob; - } + return scene->camera == ob; } static eOLDrawState tree_element_active_world(bContext *C, @@ -1001,9 +999,7 @@ static eOLDrawState tree_element_active_keymap_item(bContext *UNUSED(C), } return OL_DRAWSEL_NORMAL; } - else { - kmi->flag ^= KMI_INACTIVE; - } + kmi->flag ^= KMI_INACTIVE; return OL_DRAWSEL_NONE; } @@ -1620,9 +1616,7 @@ static TreeElement *outliner_element_find_successor_in_parents(TreeElement *te) te = successor->parent->next; break; } - else { - successor = successor->parent; - } + successor = successor->parent; } return te; |