ecore_evas_cocoa: use Eina macro to determine the size of a static array 78/82878/2
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>
Tue, 13 Oct 2015 14:10:00 +0000 (16:10 +0200)
committerThiep Ha <thiep.ha@samsung.com>
Fri, 12 Aug 2016 01:50:54 +0000 (18:50 -0700)
Change-Id: I54c4e1667059ab37de8352e2aafce18c2892340d
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c

index d694c70..1aabe95 100644 (file)
@@ -338,7 +338,7 @@ _ecore_evas_cocoa_shutdown(void)
         EINA_LIST_FREE(ecore_evases, ee)
           _ecore_evas_free(ee);
 
-        for (i = 0; i < sizeof (ecore_evas_event_handlers) / sizeof (Ecore_Event_Handler*); i++)
+        for (i = 0; i < EINA_C_ARRAY_LENGTH(ecore_evas_event_handlers); i++)
           ecore_event_handler_del(ecore_evas_event_handlers[i]);
 
         ecore_event_evas_shutdown();