From f9aa6376f1a2b13ab12a77197257e9145f029792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 6 Jan 2022 11:37:31 +0100 Subject: 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. --- source/blender/editors/include/ED_keyframes_edit.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/include') 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. -- cgit v1.2.3