diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 13:39:35 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 14:38:06 +0300 |
commit | c889d93c80c52603a501b6b76f6e251b7a6112d2 (patch) | |
tree | e39563837bc237f92b1ad5a9e429b41fe69a6e4c /source/blender/gpu/intern/gpu_matrix.cc | |
parent | 326e137a8cfaac6587a83d4c61d2889832926827 (diff) |
Cleanup: GPU, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/gpu` module.
No functional changes.
Diffstat (limited to 'source/blender/gpu/intern/gpu_matrix.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_matrix.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/gpu/intern/gpu_matrix.cc b/source/blender/gpu/intern/gpu_matrix.cc index c15bb1fba19..4174f498402 100644 --- a/source/blender/gpu/intern/gpu_matrix.cc +++ b/source/blender/gpu/intern/gpu_matrix.cc @@ -590,9 +590,8 @@ const float (*GPU_matrix_model_view_get(float m[4][4]))[4] copy_m4_m4(m, ModelView); return m; } - else { - return ModelView; - } + + return ModelView; } const float (*GPU_matrix_projection_get(float m[4][4]))[4] @@ -601,9 +600,8 @@ const float (*GPU_matrix_projection_get(float m[4][4]))[4] copy_m4_m4(m, Projection); return m; } - else { - return Projection; - } + + return Projection; } const float (*GPU_matrix_model_view_projection_get(float m[4][4]))[4] |