diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2022-01-06 13:37:31 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2022-01-06 13:41:03 +0300 |
commit | f9aa6376f1a2b13ab12a77197257e9145f029792 (patch) | |
tree | 8ef47adab543467512f0795f869793078c5dbdd8 /source/blender/editors | |
parent | 1484fe260be9601fe88a21225e05483dc0c280d9 (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')
-rw-r--r-- | source/blender/editors/include/ED_keyframes_edit.h | 6 | ||||
-rw-r--r-- | source/blender/editors/space_graph/graph_intern.h | 4 |
2 files changed, 4 insertions, 6 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. diff --git a/source/blender/editors/space_graph/graph_intern.h b/source/blender/editors/space_graph/graph_intern.h index 286580b5629..243a4ee4b95 100644 --- a/source/blender/editors/space_graph/graph_intern.h +++ b/source/blender/editors/space_graph/graph_intern.h @@ -109,8 +109,8 @@ void get_graph_keyframe_extents(struct bAnimContext *ac, float *xmax, float *ymin, float *ymax, - const bool do_sel_only, - const bool include_handles); + bool do_sel_only, + bool include_handles); void GRAPH_OT_previewrange_set(struct wmOperatorType *ot); void GRAPH_OT_view_all(struct wmOperatorType *ot); |