changeset 25244:0798448dcbea

Make wsKeyNames array const
author reimar
date Sun, 02 Dec 2007 21:48:45 +0000
parents 2dee54f0d8a0
children 157aafb33efe
files gui/wm/wskeys.h gui/wm/wsmkeys.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/wskeys.h	Sun Dec 02 21:41:51 2007 +0000
+++ b/gui/wm/wskeys.h	Sun Dec 02 21:48:45 2007 +0000
@@ -159,7 +159,7 @@
  const char * name;
 } TwsKeyNames;
 
-extern TwsKeyNames wsKeyNames[ wsKeyNumber ];
+extern const TwsKeyNames wsKeyNames[ wsKeyNumber ];
 
 #endif
 
--- a/gui/wm/wsmkeys.h	Sun Dec 02 21:41:51 2007 +0000
+++ b/gui/wm/wsmkeys.h	Sun Dec 02 21:48:45 2007 +0000
@@ -3,7 +3,7 @@
 
 #include "wskeys.h"
 
-TwsKeyNames wsKeyNames[ wsKeyNumber ] =
+const TwsKeyNames wsKeyNames[ wsKeyNumber ] =
  {
   { wsq, "q" }, { wsa, "a" }, { wsz, "z" }, { wsw, "w" }, { wss, "s" }, { wsx, "x" },
   { wse, "e" }, { wsd, "d" }, { wsr, "r" }, { wsf, "f" }, { wsv, "v" }, { wst, "t" },