elementary: return proper value when failed to get widget data 96/225496/2
authorYeongjong Lee <yj34.lee@samsung.com>
Thu, 20 Feb 2020 08:26:22 +0000 (17:26 +0900)
committerYeongJong Lee <yj34.lee@samsung.com>
Fri, 21 Feb 2020 08:12:35 +0000 (08:12 +0000)
Fixes '-Wreturn-type' compiler warning.

@tizen_fix
Change-Id: I96a404c41c6eacc9e3d9d6d02c9022c4be2663ce

src/lib/elementary/elm_notify.c
src/lib/elementary_tizen/elm_genlist.c

index 74c3f5444eee3bcf53c69f6948b5e6f882d24cbf..51e4dcd0344d31a46dea46826584128d2b8baa02 100644 (file)
@@ -574,7 +574,7 @@ EOLIAN static Eina_Bool
 _elm_notify_efl_ui_widget_transition_duration_factor_set(Eo *obj, Elm_Notify_Data *sd, double duration)
 {
    //transition is on
-   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
+   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
 
    if (duration == wd->transition_duration) return EINA_TRUE;
 
index a5c2e1028d67df99c6fd337a7ce97af84520ace5..23afa4e87b4ddc3b2a29c0a926cc2ea01e06bc55 100644 (file)
@@ -3801,7 +3801,7 @@ _item_select(Elm_Gen_Item *it)
    efl_ref(EO_OBJ(it));
 
    // TIZEN_ONLY(20170718) - Add new variable for solve item select issue.
-   ELM_WIDGET_DATA_GET_OR_RETURN(WIDGET(it), wsd);
+   ELM_WIDGET_DATA_GET_OR_RETURN(WIDGET(it), wsd, EINA_FALSE);
    if (wsd->scroll_item_align_enable)
      {
         if (sd->selecting_item && it == sd->selecting_item)