projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c2b37
)
ecore_cocoa: consitfy structure fields
author
Jean Guyomarc'h
<jean@guyomarch.bzh>
Sun, 29 Oct 2017 15:04:24 +0000
(16:04 +0100)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/lib/ecore_cocoa/ecore_cocoa_keys.h
b/src/lib/ecore_cocoa/ecore_cocoa_keys.h
index
4eda272
..
00ae045
100644
(file)
--- 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[] =