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>2022-01-06 13:37:31 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-01-06 13:41:03 +0300
commitf9aa6376f1a2b13ab12a77197257e9145f029792 (patch)
tree8ef47adab543467512f0795f869793078c5dbdd8 /source/blender/editors/include
parent1484fe260be9601fe88a21225e05483dc0c280d9 (diff)
Cleanup: anim, remove `const` declarations from pass-by-value params
Remove `const` from pass-by-value parameters in function declarations. The variables passed as parameters can never be modified by the function anyway, so declaring them as `const` is meaningless. Having the declaration there could confuse, especially as it suggests it does have a meaning, training people to write meaningless code.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/ED_keyframes_edit.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h
index d08abf8aab8..a7b580d5257 100644
--- a/source/blender/editors/include/ED_keyframes_edit.h
+++ b/source/blender/editors/include/ED_keyframes_edit.h
@@ -398,10 +398,8 @@ void clean_fcurve(struct bAnimContext *ac,
bool cleardefault);
void blend_to_neighbor_fcurve_segment(struct FCurve *fcu,
struct FCurveSegment *segment,
- const float factor);
-void breakdown_fcurve_segment(struct FCurve *fcu,
- struct FCurveSegment *segment,
- const float factor);
+ float factor);
+void breakdown_fcurve_segment(struct FCurve *fcu, struct FCurveSegment *segment, float factor);
bool decimate_fcurve(struct bAnimListElem *ale, float remove_ratio, float error_sq_max);
/**
* Use a weighted moving-means method to reduce intensity of fluctuations.