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_constraint.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_constraint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_constraint.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_constraint.h b/source/blender/blenkernel/BKE_constraint.h index 1f59efbb0f3..55e5cd0a149 100644 --- a/source/blender/blenkernel/BKE_constraint.h +++ b/source/blender/blenkernel/BKE_constraint.h @@ -162,9 +162,7 @@ void BKE_constraint_unique_name(struct bConstraint *con, struct ListBase *list); /** * Allocate and duplicate a single constraint, outside of any object/pose context. */ -struct bConstraint *BKE_constraint_duplicate_ex(struct bConstraint *src, - const int flag, - const bool do_extern); +struct bConstraint *BKE_constraint_duplicate_ex(struct bConstraint *src, int flag, bool do_extern); /** * Add a copy of the given constraint for the given bone. @@ -188,7 +186,7 @@ void BKE_constraints_copy(struct ListBase *dst, const struct ListBase *src, bool */ void BKE_constraints_copy_ex(struct ListBase *dst, const struct ListBase *src, - const int flag, + int flag, bool do_extern); /** * Run the given callback on all ID-blocks in list of constraints. @@ -319,7 +317,7 @@ void BKE_constraint_mat_convertspace(struct Object *ob, float mat[4][4], short from, short to, - const bool keep_scale); + bool keep_scale); /** * This function is a relic from the prior implementations of the constraints system, when all |