Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-26 18:21:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-26 18:25:15 +0400
commit15d77d201d667d5b7f4277cff91f11400e85971a (patch)
tree82b0a96778aeab1780a9ff33b76e2dc6c085d1ab /source/blender/windowmanager/intern/wm_gesture.c
parente73d0f57a32f309433c005c06d6da2048f274c04 (diff)
Code cleanup: use 'const' for arrays (windowmanager)
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r--source/blender/windowmanager/intern/wm_gesture.c4
1 files changed, 2 insertions, 2 deletions
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) {