diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:20:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:25:15 +0400 |
commit | a2c107aef1c8aaf7deb17dd0319bc07e55cb4293 (patch) | |
tree | ae3a039dc5b139a276243b4ae4eed1bbc90c84e2 /source/blender/blenkernel/intern/mask.c | |
parent | 11310b554ab2f08c9f0d086f5f07694ba7ca9f19 (diff) |
Code cleanup: use 'const' for arrays (blenkernel)
Diffstat (limited to 'source/blender/blenkernel/intern/mask.c')
-rw-r--r-- | source/blender/blenkernel/intern/mask.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/mask.c b/source/blender/blenkernel/intern/mask.c index b303243b66a..8548e363233 100644 --- a/source/blender/blenkernel/intern/mask.c +++ b/source/blender/blenkernel/intern/mask.c @@ -1687,8 +1687,8 @@ void BKE_mask_layer_shape_to_mask_interp(MaskLayer *masklay, { int tot = BKE_mask_layer_shape_totvert(masklay); if (masklay_shape_a->tot_vert == tot && masklay_shape_b->tot_vert == tot) { - float *fp_a = masklay_shape_a->data; - float *fp_b = masklay_shape_b->data; + const float *fp_a = masklay_shape_a->data; + const float *fp_b = masklay_shape_b->data; const float ifac = 1.0f - fac; MaskSpline *spline; @@ -2105,7 +2105,7 @@ void BKE_mask_clipboard_paste_to_layer(Main *bmain, MaskLayer *mask_layer) for (i = 0; i < spline_new->tot_point; i++) { MaskSplinePoint *point = &spline_new->points[i]; if (point->parent.id) { - char *id_name = BLI_ghash_lookup(mask_clipboard.id_hash, point->parent.id); + const char *id_name = BLI_ghash_lookup(mask_clipboard.id_hash, point->parent.id); ListBase *listbase; BLI_assert(id_name != NULL); |