From c67bd49e5607cc3db7446d4b12e1346fc9b2c83a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 27 Apr 2014 00:22:49 +1000 Subject: Code cleanup: use 'const' for arrays (editors) --- source/blender/editors/space_file/filelist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_file/filelist.c') diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 15d177011c4..8ef9308e2fd 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -94,8 +94,8 @@ typedef struct FileImage { typedef struct ThumbnailJob { ListBase loadimages; - short *stop; - short *do_update; + const short *stop; + const short *do_update; struct FileList *filelist; ReportList reports; } ThumbnailJob; @@ -1097,7 +1097,7 @@ void filelist_from_library(struct FileList *filelist) filelist->filelist[0].type |= S_IFDIR; for (i = 0, l = names; i < nnames; i++, l = l->next) { - char *blockname = l->link; + const char *blockname = l->link; filelist->filelist[i + 1].relname = BLI_strdup(blockname); if (idcode) { -- cgit v1.2.3