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/blenkernel/BKE_brush.h | |
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/blenkernel/BKE_brush.h')
-rw-r--r-- | source/blender/blenkernel/BKE_brush.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_brush.h b/source/blender/blenkernel/BKE_brush.h index a0f3733588a..bf672507c13 100644 --- a/source/blender/blenkernel/BKE_brush.h +++ b/source/blender/blenkernel/BKE_brush.h @@ -111,11 +111,11 @@ void BKE_brush_curve_preset(struct Brush *b, enum eCurveMappingPreset preset); /** * Uses the brush curve control to find a strength value between 0 and 1. */ -float BKE_brush_curve_strength_clamped(const struct Brush *br, float p, const float len); +float BKE_brush_curve_strength_clamped(const struct Brush *br, float p, float len); /** * Uses the brush curve control to find a strength value. */ -float BKE_brush_curve_strength(const struct Brush *br, float p, const float len); +float BKE_brush_curve_strength(const struct Brush *br, float p, float len); /* Sampling. */ |