From 23e14259d2485fe58c89ef34eeb2df6c1d8328dc Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 31 Oct 2014 16:17:02 +0100 Subject: Code cleanup: synchronize const qualifiers between declaration and definition --- source/blender/blenkernel/BKE_curve.h | 4 ++-- source/blender/blenkernel/intern/curve.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/BKE_curve.h b/source/blender/blenkernel/BKE_curve.h index 253d9edc3b5..13a1468aee8 100644 --- a/source/blender/blenkernel/BKE_curve.h +++ b/source/blender/blenkernel/BKE_curve.h @@ -85,8 +85,8 @@ void BKE_curve_texspace_get(struct Curve *cu, float r_loc[3], float r_rot[3], fl bool BKE_curve_minmax(struct Curve *cu, bool use_radius, float min[3], float max[3]); bool BKE_curve_center_median(struct Curve *cu, float cent[3]); bool BKE_curve_center_bounds(struct Curve *cu, float cent[3]); -void BKE_curve_transform_ex(struct Curve *cu, float mat[4][4], bool do_keys, const float unit_scale); -void BKE_curve_transform(struct Curve *cu, float mat[4][4], bool do_keys); +void BKE_curve_transform_ex(struct Curve *cu, float mat[4][4], const bool do_keys, const float unit_scale); +void BKE_curve_transform(struct Curve *cu, float mat[4][4], const bool do_keys); void BKE_curve_translate(struct Curve *cu, float offset[3], const bool do_keys); void BKE_curve_material_index_remove(struct Curve *cu, int index); void BKE_curve_material_index_clear(struct Curve *cu); diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index ca58035d638..937ceffc765 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -4312,7 +4312,7 @@ bool BKE_curve_center_bounds(Curve *cu, float cent[3]) } -void BKE_curve_transform_ex(Curve *cu, float mat[4][4], bool do_keys, float unit_scale) +void BKE_curve_transform_ex(Curve *cu, float mat[4][4], const bool do_keys, const float unit_scale) { Nurb *nu; BPoint *bp; @@ -4348,13 +4348,13 @@ void BKE_curve_transform_ex(Curve *cu, float mat[4][4], bool do_keys, float unit } } -void BKE_curve_transform(Curve *cu, float mat[4][4], bool do_keys) +void BKE_curve_transform(Curve *cu, float mat[4][4], const bool do_keys) { float unit_scale = mat4_to_scale(mat); BKE_curve_transform_ex(cu, mat, do_keys, unit_scale); } -void BKE_curve_translate(Curve *cu, float offset[3], bool do_keys) +void BKE_curve_translate(Curve *cu, float offset[3], const bool do_keys) { ListBase *nurb_lb = BKE_curve_nurbs_get(cu); Nurb *nu; -- cgit v1.2.3