From 15d77d201d667d5b7f4277cff91f11400e85971a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 27 Apr 2014 00:21:43 +1000 Subject: Code cleanup: use 'const' for arrays (windowmanager) --- source/blender/windowmanager/intern/wm_gesture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_gesture.c') diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c index 9a00e709d85..c9ef473a442 100644 --- a/source/blender/windowmanager/intern/wm_gesture.c +++ b/source/blender/windowmanager/intern/wm_gesture.c @@ -247,7 +247,7 @@ static void draw_filled_lasso_px_cb(int x, int y, void *user_data) static void draw_filled_lasso(wmWindow *win, wmGesture *gt) { - short *lasso = (short *)gt->customdata; + const short *lasso = (short *)gt->customdata; const int tot = gt->points; int (*moves)[2] = MEM_mallocN(sizeof(*moves) * (tot + 1), __func__); int i; @@ -295,7 +295,7 @@ static void draw_filled_lasso(wmWindow *win, wmGesture *gt) static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt, bool filled) { - short *lasso = (short *)gt->customdata; + const short *lasso = (short *)gt->customdata; int i; if (filled) { -- cgit v1.2.3