summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_list.c
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2018-09-21 18:40:05 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-09-21 18:43:21 +0900
commitde277311fde3eab54db21c3316149d5b519cf3a1 (patch)
tree2af0a624d65c2d937563da238c046d94b195ccc1 /src/lib/elementary/efl_ui_list.c
parent17d5a20a3b0ba5b70ef27949bf308b908099576f (diff)
efl_ui_list: Return function if data get is failed
Summary: Check data and return function if data get is failed. Reviewers: SanghyeonLee Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7092
Diffstat (limited to 'src/lib/elementary/efl_ui_list.c')
-rw-r--r--src/lib/elementary/efl_ui_list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_list.c b/src/lib/elementary/efl_ui_list.c
index bb6abf3ef3..272ef28008 100644
--- a/src/lib/elementary/efl_ui_list.c
+++ b/src/lib/elementary/efl_ui_list.c
@@ -677,8 +677,8 @@ _list_item_process(Eo *obj, Efl_Ui_List_Data *pd, EINA_UNUSED Efl_Ui_List_Item *
677 EFL_UI_LIST_ITEM_CHECK_OR_RETURN(it, EINA_FALSE); 677 EFL_UI_LIST_ITEM_CHECK_OR_RETURN(it, EINA_FALSE);
678 678
679 //FIXME: This is tricky workaround for set select mode and parent value. 679 //FIXME: This is tricky workaround for set select mode and parent value.
680 EFL_UI_LIST_ITEM_DATA_GET(it, ld); 680 EFL_UI_LIST_ITEM_DATA_GET_OR_RETURN(it, ld, EINA_FALSE);
681 EFL_UI_ITEM_DATA_GET(it, id); 681 EFL_UI_ITEM_DATA_GET_OR_RETURN(it, id, EINA_FALSE);
682 id->select_mode = &(pd->select_mode); 682 id->select_mode = &(pd->select_mode);
683 id->parent = obj; 683 id->parent = obj;
684 ld->parent = obj; 684 ld->parent = obj;
@@ -697,8 +697,8 @@ static void
697_list_item_clear(Eo *obj, Efl_Ui_List_Data *pd EINA_UNUSED, EINA_UNUSED Efl_Ui_List_Item *it) 697_list_item_clear(Eo *obj, Efl_Ui_List_Data *pd EINA_UNUSED, EINA_UNUSED Efl_Ui_List_Item *it)
698{ 698{
699 EFL_UI_LIST_ITEM_CHECK_OR_RETURN(it); 699 EFL_UI_LIST_ITEM_CHECK_OR_RETURN(it);
700 EFL_UI_LIST_ITEM_DATA_GET(it, ld); 700 EFL_UI_LIST_ITEM_DATA_GET_OR_RETURN(it, ld);
701 EFL_UI_ITEM_DATA_GET(it, id); 701 EFL_UI_ITEM_DATA_GET_OR_RETURN(it, id);
702 id->select_mode = NULL; 702 id->select_mode = NULL;
703 id->parent = NULL; 703 id->parent = NULL;
704 ld->parent = NULL; 704 ld->parent = NULL;