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:
authorSybren A. Stüvel <sybren@blender.org>2020-07-03 18:25:04 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-07-03 18:42:45 +0300
commit651d1aa7c836892e95117e17716605a774c0220b (patch)
tree824c048f96f320fe1066e5d27ee7af5e19d57851 /source/blender/editors/transform/transform_convert_action.c
parent35ce16939cc972b2cb85192ca23994fc61b9fbdd (diff)
Cleanup: Editors/Transform, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/transform` module. No functional changes.
Diffstat (limited to 'source/blender/editors/transform/transform_convert_action.c')
-rw-r--r--source/blender/editors/transform/transform_convert_action.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/editors/transform/transform_convert_action.c b/source/blender/editors/transform/transform_convert_action.c
index b9292aa151c..40e60544642 100644
--- a/source/blender/editors/transform/transform_convert_action.c
+++ b/source/blender/editors/transform/transform_convert_action.c
@@ -84,9 +84,7 @@ static int count_fcurve_keys(FCurve *fcu, char side, float cfra, bool is_prop_ed
if (is_prop_edit && count > 0) {
return count_all;
}
- else {
- return count;
- }
+ return count;
}
/* fully select selected beztriples, but only include if it's on the right side of cfra */
@@ -112,9 +110,7 @@ static int count_gplayer_frames(bGPDlayer *gpl, char side, float cfra, bool is_p
if (is_prop_edit && count > 0) {
return count_all;
}
- else {
- return count;
- }
+ return count;
}
/* fully select selected beztriples, but only include if it's on the right side of cfra */
@@ -141,9 +137,7 @@ static int count_masklayer_frames(MaskLayer *masklay, char side, float cfra, boo
if (is_prop_edit && count > 0) {
return count_all;
}
- else {
- return count;
- }
+ return count;
}
/* This function assigns the information to transdata */