forked from enlightenment/efl
Genlist: only get item data if needed.
Moved the data fetching to be after the tests. This doesn't really matter and is mostly there to silence coverity. Coverity was complaining about "it" being dereferenced before the null check (implicit in EO_OBJ), so reordering it will fix it. CID 1040000
This commit is contained in:
parent
44425a748d
commit
a06105d8dd
|
@ -3941,11 +3941,12 @@ _swipe_do(Elm_Gen_Item *it)
|
|||
{
|
||||
int i, sum = 0;
|
||||
Eina_Bool tmp;
|
||||
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
|
||||
|
||||
if (_is_no_select(it) ||
|
||||
eo_do_ret(EO_OBJ(it), tmp, elm_wdg_item_disabled_get())) return;
|
||||
|
||||
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
|
||||
|
||||
sd->swipe = EINA_FALSE;
|
||||
for (i = 0; i < sd->movements; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue