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/sequencer.c | |
parent | 11310b554ab2f08c9f0d086f5f07694ba7ca9f19 (diff) |
Code cleanup: use 'const' for arrays (blenkernel)
Diffstat (limited to 'source/blender/blenkernel/intern/sequencer.c')
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index d3b6e810b55..ed95a0a37cd 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -1767,8 +1767,8 @@ static void color_balance_byte_float(StripColorBalance *cb_, unsigned char *rect static void color_balance_float_float(StripColorBalance *cb_, float *rect_float, float *mask_rect_float, int width, int height, float mul) { float *p = rect_float; - float *e = rect_float + width * 4 * height; - float *m = mask_rect_float; + const float *e = rect_float + width * 4 * height; + const float *m = mask_rect_float; StripColorBalance cb = calc_cb(cb_); while (p < e) { @@ -2415,7 +2415,7 @@ static ImBuf *seq_render_mask(const SeqRenderData *context, Mask *mask, float nr if (make_float) { /* pixels */ - float *fp_src; + const float *fp_src; float *fp_dst; ibuf = IMB_allocImBuf(context->rectx, context->recty, 32, IB_rectfloat); @@ -2433,7 +2433,7 @@ static ImBuf *seq_render_mask(const SeqRenderData *context, Mask *mask, float nr } else { /* pixels */ - float *fp_src; + const float *fp_src; unsigned char *ub_dst; ibuf = IMB_allocImBuf(context->rectx, context->recty, 32, IB_rect); |