summaryrefslogtreecommitdiffstats
path: root/win/ttkWinXPTheme.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-28 09:17:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-28 09:17:31 (GMT)
commitc62156ec5eb37bd06c5da8073199293776c2077b (patch)
treeb75e946b008443837e40e3516f6fb35fe9b7bd60 /win/ttkWinXPTheme.c
parent4c531f9d212a2c6754767b81a4a2889612f11a1b (diff)
downloadtk-c62156ec5eb37bd06c5da8073199293776c2077b.zip
tk-c62156ec5eb37bd06c5da8073199293776c2077b.tar.gz
tk-c62156ec5eb37bd06c5da8073199293776c2077b.tar.bz2
CONST'ify some string arrays (strings itself where already CONST, but the arrays were not). Minor C-compiler optimization.
Diffstat (limited to 'win/ttkWinXPTheme.c')
-rw-r--r--win/ttkWinXPTheme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/ttkWinXPTheme.c b/win/ttkWinXPTheme.c
index 909660a..4a198a3 100644
--- a/win/ttkWinXPTheme.c
+++ b/win/ttkWinXPTheme.c
@@ -1108,7 +1108,7 @@ Ttk_CreateVsapiElement(
LPWSTR wname;
Ttk_ElementSpec *elementSpec = &GenericElementSpec;
- static const char *optionStrings[] =
+ static const char *const optionStrings[] =
{ "-padding","-width","-height","-margins", "-syssize",
"-halfheight", "-halfwidth", NULL };
enum { O_PADDING, O_WIDTH, O_HEIGHT, O_MARGINS, O_SYSSIZE,