forked from enlightenment/efl
list: Optimize eo item usage.
Remove unnecessary pointer reference.
This commit is contained in:
parent
d31b51eccc
commit
9b9a0267b7
|
@ -2368,7 +2368,7 @@ _elm_list_evas_object_smart_del(Eo *obj, Elm_List_Data *sd)
|
||||||
/* issuing free because of "locking" item del pre hook */
|
/* issuing free because of "locking" item del pre hook */
|
||||||
_elm_list_item_free(it);
|
_elm_list_item_free(it);
|
||||||
WIDGET(it) = NULL;
|
WIDGET(it) = NULL;
|
||||||
eo_del(EO_OBJ(it));
|
eo_del(eo_it);
|
||||||
}
|
}
|
||||||
|
|
||||||
_elm_list_unwalk(obj, sd);
|
_elm_list_unwalk(obj, sd);
|
||||||
|
@ -2620,7 +2620,7 @@ _elm_list_clear(Eo *obj, Elm_List_Data *sd)
|
||||||
ELM_LIST_ITEM_DATA_GET(eo_it, it);
|
ELM_LIST_ITEM_DATA_GET(eo_it, it);
|
||||||
/* issuing free because of "locking" item del pre hook */
|
/* issuing free because of "locking" item del pre hook */
|
||||||
_elm_list_item_free(it);
|
_elm_list_item_free(it);
|
||||||
eo_del(EO_OBJ(it));
|
eo_del(eo_it);
|
||||||
}
|
}
|
||||||
|
|
||||||
_elm_list_unwalk(obj, sd);
|
_elm_list_unwalk(obj, sd);
|
||||||
|
|
Loading…
Reference in New Issue