Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-03-08 22:28:22 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:30:36 +0300
commit71e5823170e39d5337ecbd504911b4147bafe188 (patch)
treef8a6cca4f78cc292a1b28dcdcf96024ba47165ba /source/blender/editors/space_outliner
parent73150ad1cb1aad6a4bc755060a7b0e3f4077eaaa (diff)
Cleanup: Clang tidy
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.cc b/source/blender/editors/space_outliner/outliner_draw.cc
index 53de7d582b6..04d4da5e62f 100644
--- a/source/blender/editors/space_outliner/outliner_draw.cc
+++ b/source/blender/editors/space_outliner/outliner_draw.cc
@@ -2348,10 +2348,8 @@ static BIFIconID tree_element_get_icon_from_id(const ID *id)
if (text->filepath == nullptr || (text->flags & TXT_ISMEM)) {
return ICON_FILE_TEXT;
}
- else {
- /* Helps distinguish text-based formats like the file-browser does. */
- return (BIFIconID)ED_file_extension_icon(text->filepath);
- }
+ /* Helps distinguish text-based formats like the file-browser does. */
+ return (BIFIconID)ED_file_extension_icon(text->filepath);
}
case ID_GR:
return ICON_OUTLINER_COLLECTION;