diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 13:32:45 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 14:38:06 +0300 |
commit | f453ee7d3ab4be78f7bd0be5aa14d2a281552629 (patch) | |
tree | 2ab10475fa4c5b05cf36c6b073a5452feacbba38 /source/blender/compositor/operations/COM_OutputFileOperation.cpp | |
parent | fb18e48a84a645a1ef8329f150b223afe0efc7f0 (diff) |
Cleanup: Compositor, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/compositor` module.
No functional changes.
Diffstat (limited to 'source/blender/compositor/operations/COM_OutputFileOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_OutputFileOperation.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_OutputFileOperation.cpp b/source/blender/compositor/operations/COM_OutputFileOperation.cpp index ee3779edcb4..374189a5c50 100644 --- a/source/blender/compositor/operations/COM_OutputFileOperation.cpp +++ b/source/blender/compositor/operations/COM_OutputFileOperation.cpp @@ -129,9 +129,8 @@ static float *init_buffer(unsigned int width, unsigned int height, DataType data int size = get_datatype_size(datatype); return (float *)MEM_callocN(width * height * size * sizeof(float), "OutputFile buffer"); } - else { - return NULL; - } + + return NULL; } static void write_buffer_rect(rcti *rect, |