ecore_cocoa: consitfy structure fields
authorJean Guyomarc'h <jean@guyomarch.bzh>
Sun, 29 Oct 2017 15:04:24 +0000 (16:04 +0100)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Sun, 29 Oct 2017 15:04:24 +0000 (16:04 +0100)
This structure is exclusively statically initialized. As none of its
fields will be altered, they can all be const.

src/lib/ecore_cocoa/ecore_cocoa_keys.h

index 4eda272..00ae045 100644 (file)
@@ -9,9 +9,9 @@
 
 struct _ecore_cocoa_keys_s
 {
-   int         code;
-   const char  *name;
-   const char  *compose;
+   const int         code;
+   const char *const name;
+   const char *const compose;
 };
 
 static const struct _ecore_cocoa_keys_s keystable[] =