Evas: remove warning while factorizing code

This commit is contained in:
Vincent Torri 2015-04-05 07:50:50 +02:00 committed by Daniel Zaoui
parent 513b7c5ed9
commit c8a9769665
1 changed files with 11 additions and 15 deletions

View File

@ -484,14 +484,12 @@ _efl_vg_base_efl_gfx_stack_below_get(Eo *obj, Efl_VG_Base_Data *pd EINA_UNUSED)
EINA_ARRAY_ITER_NEXT(&a, i, current, iterator)
if (current == obj)
break;
if (current == obj)
{
i++;
if (i < eina_array_count(&a))
below = eina_array_data_get(&a, i);
}
{
i++;
if (i < eina_array_count(&a))
below = eina_array_data_get(&a, i);
break;
}
eina_array_flush(&a);
@ -516,13 +514,11 @@ _efl_vg_base_efl_gfx_stack_above_get(Eo *obj, Efl_VG_Base_Data *pd EINA_UNUSED)
EINA_ARRAY_ITER_NEXT(&a, i, current, iterator)
if (current == obj)
break;
if (current == obj)
{
if (i > 0)
above = eina_array_data_get(&a, i - 1);
}
{
if (i > 0)
above = eina_array_data_get(&a, i - 1);
break;
}
eina_array_flush(&a);