diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 15:20:10 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-07-03 15:48:37 +0300 |
commit | f3b8792b963b0b2a00fe7fe173f1beb85c209fbb (patch) | |
tree | 55ffa18ad4a6f2f03a127469780d47c54ad9bd74 /source/blender/editors/interface/interface_query.c | |
parent | 86e7648f0edc13d613d8fc39af7758e08cfdf9e2 (diff) |
Cleanup: Interface, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/interface` module.
No functional changes.
Diffstat (limited to 'source/blender/editors/interface/interface_query.c')
-rw-r--r-- | source/blender/editors/interface/interface_query.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/interface/interface_query.c b/source/blender/editors/interface/interface_query.c index 6d05fe15f97..4634f4b95c9 100644 --- a/source/blender/editors/interface/interface_query.c +++ b/source/blender/editors/interface/interface_query.c @@ -107,9 +107,7 @@ bool UI_but_is_utf8(const uiBut *but) const int subtype = RNA_property_subtype(but->rnaprop); return !(ELEM(subtype, PROP_FILEPATH, PROP_DIRPATH, PROP_FILENAME, PROP_BYTESTRING)); } - else { - return !(but->flag & UI_BUT_NO_UTF8); - } + return !(but->flag & UI_BUT_NO_UTF8); } #ifdef USE_UI_POPOVER_ONCE @@ -171,9 +169,7 @@ int ui_but_icon(const uiBut *but) if (but->drawflag & UI_BUT_ICON_REVERSE) { return but->icon - but->iconadd; } - else { - return but->icon + but->iconadd; - } + return but->icon + but->iconadd; } /** \} */ |