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_action.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_action.h')
-rw-r--r-- | source/blender/blenkernel/BKE_action.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_action.h b/source/blender/blenkernel/BKE_action.h index 5dd98dbb9a3..0b09bfd8730 100644 --- a/source/blender/blenkernel/BKE_action.h +++ b/source/blender/blenkernel/BKE_action.h @@ -235,9 +235,9 @@ void BKE_pose_free_ex(struct bPose *pose, bool do_id_user); */ void BKE_pose_copy_data_ex(struct bPose **dst, const struct bPose *src, - const int flag, - const bool copy_constraints); -void BKE_pose_copy_data(struct bPose **dst, const struct bPose *src, const bool copy_constraints); + int flag, + bool copy_constraints); +void BKE_pose_copy_data(struct bPose **dst, const struct bPose *src, bool copy_constraints); /** * Copy the internal members of each pose channel including constraints * and ID-Props, used when duplicating bones in edit-mode. @@ -266,7 +266,7 @@ bool BKE_pose_is_layer_visible(const struct bArmature *arm, const struct bPoseCh * \return #bPoseChannel if found or NULL. * \note #Object, not #bPose is used here, as we need info (layer/active bone) from Armature. */ -struct bPoseChannel *BKE_pose_channel_active(struct Object *ob, const bool check_arm_layer); +struct bPoseChannel *BKE_pose_channel_active(struct Object *ob, bool check_arm_layer); /** * Find the active pose-channel for an object if it is on a visible armature layer * (calls #BKE_pose_channel_active with check_arm_layer set to true) @@ -346,11 +346,11 @@ struct bActionGroup *BKE_pose_add_group(struct bPose *pose, const char *name); * Remove the given bone-group (expects 'virtual' index (+1 one, used by active_group etc.)) * index might be invalid ( < 1), in which case it will be find from grp. */ -void BKE_pose_remove_group(struct bPose *pose, struct bActionGroup *grp, const int index); +void BKE_pose_remove_group(struct bPose *pose, struct bActionGroup *grp, int index); /** * Remove the indexed bone-group (expects 'virtual' index (+1 one, used by active_group etc.)). */ -void BKE_pose_remove_group_index(struct bPose *pose, const int index); +void BKE_pose_remove_group_index(struct bPose *pose, int index); /* Assorted Evaluation ----------------- */ |