From: Jean Guyomarc'h Date: Sun, 29 Oct 2017 15:04:24 +0000 (+0100) Subject: ecore_cocoa: consitfy structure fields X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1977 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d28dddfdea28f59f2fc73cda6f859763e441d672;p=platform%2Fupstream%2Fefl.git ecore_cocoa: consitfy structure fields This structure is exclusively statically initialized. As none of its fields will be altered, they can all be const. --- diff --git a/src/lib/ecore_cocoa/ecore_cocoa_keys.h b/src/lib/ecore_cocoa/ecore_cocoa_keys.h index 4eda272..00ae045 100644 --- a/src/lib/ecore_cocoa/ecore_cocoa_keys.h +++ b/src/lib/ecore_cocoa/ecore_cocoa_keys.h @@ -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[] =