efl_ui_item: fix wrong returns correctly 60/219860/2
authorWooHyun Jung <wh0705.jung@samsung.com>
Wed, 11 Dec 2019 04:52:10 +0000 (13:52 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Wed, 11 Dec 2019 04:55:16 +0000 (04:55 +0000)
@tizen_fix

Change-Id: Ide14d19abf14f9fc7998e4c39504453528ba9e90

src/lib/elementary/efl_ui_item.c

index 1741ea5..9034c74 100644 (file)
@@ -26,7 +26,7 @@ static const Elm_Action key_actions[] = {
 Efl_Object *
 _efl_ui_item_proxy_get(Efl_Object *item)
 {
-   if (!item) return;
+   if (!item) return NULL;
    EFL_UI_ITEM_DATA_GET_OR_RETURN(item, pd, NULL);
    return pd->proxy;
 }
@@ -34,7 +34,7 @@ _efl_ui_item_proxy_get(Efl_Object *item)
 Efl_Object *
 _efl_ui_item_proxy_new(Efl_Object *item)
 {
-   EFL_UI_ITEM_DATA_GET_OR_RETURN(item, pd);
+   EFL_UI_ITEM_DATA_GET_OR_RETURN(item, pd, NULL);
    pd->proxy = evas_object_image_filled_add(evas_object_evas_get(item));
    //Efl_Object *group = efl_canvas_object_render_parent_get(ent);
    //efl_canvas_group_member_add(ent, pd->proxy);
@@ -60,7 +60,7 @@ _efl_ui_item_proxy_enabled_set(Efl_Object *item, Eina_Bool enabled)
 Eina_Bool
 _efl_ui_item_proxy_enabled_get(Efl_Object *item)
 {
-   EFL_UI_ITEM_DATA_GET_OR_RETURN(item, pd);
+   EFL_UI_ITEM_DATA_GET_OR_RETURN(item, pd, EINA_FALSE);
    return pd->proxy_enabled;
 }
 //