summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-13 10:59:13 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-10 08:32:49 +0100
commita51dc81d1fcbdb5b48f41dda08aecd0ddbd34c4a (patch)
tree9cb2f50427c3cfe641af95ad33300715f823d715
parent650852fd8d050ca4ba97e2fbacf77b56378f3336 (diff)
ecore_cocoa: improve const-correctness
-rw-r--r--src/lib/ecore_cocoa/Ecore_Cocoa.h2
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index 4341389ce2..84a69a87d2 100644
--- a/src/lib/ecore_cocoa/Ecore_Cocoa.h
+++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h
@@ -164,7 +164,7 @@ EAPI void ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
164 164
165EAPI int ecore_cocoa_titlebar_height_get(void); 165EAPI int ecore_cocoa_titlebar_height_get(void);
166 166
167EAPI Ecore_Cocoa_Window_Id ecore_cocoa_window_get_window_id(Ecore_Cocoa_Window *window); 167EAPI Ecore_Cocoa_Window_Id ecore_cocoa_window_get_window_id(const Ecore_Cocoa_Window *window);
168 168
169 169
170EAPI void ecore_cocoa_window_cursor_set(Ecore_Cocoa_Window *win, Ecore_Cocoa_Cursor c); 170EAPI void ecore_cocoa_window_cursor_set(Ecore_Cocoa_Window *win, Ecore_Cocoa_Cursor c);
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index de905c53ee..78c86a29b3 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -496,7 +496,8 @@ ecore_cocoa_window_view_set(Ecore_Cocoa_Window *window,
496 [area release]; 496 [area release];
497} 497}
498 498
499Ecore_Cocoa_Window_Id ecore_cocoa_window_get_window_id(Ecore_Cocoa_Window *window) 499EAPI Ecore_Cocoa_Window_Id
500ecore_cocoa_window_get_window_id(const Ecore_Cocoa_Window *window)
500{ 501{
501 if (!window) 502 if (!window)
502 return 0; 503 return 0;