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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
Reference in New Issue
Block a user