summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2018-01-18 14:13:05 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2018-01-18 14:13:05 +0900
commit50e0099cebf340399954ba39c5b19b4638e92bdf (patch)
treed1b5d1660ca8e99c77714a9643a7640338cb54cc
parent50a082cab9fb1c8b83a5295df391b53cc5ced4cd (diff)
ui.list: Fix shadow variable warnings
node2 didn't conflict, just making it consistent with nodedata2
-rw-r--r--src/lib/elementary/efl_ui_list_precise_layouter.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/elementary/efl_ui_list_precise_layouter.c b/src/lib/elementary/efl_ui_list_precise_layouter.c
index bc61fec2fa..5ce58ea66c 100644
--- a/src/lib/elementary/efl_ui_list_precise_layouter.c
+++ b/src/lib/elementary/efl_ui_list_precise_layouter.c
@@ -155,17 +155,17 @@ _item_min_calc(Efl_Ui_List_Precise_Layouter_Data *pd, Efl_Ui_List_LayoutItem* it
155 pd->min.w = min.w; 155 pd->min.w = min.w;
156 else if (pd->min.w == item->min.w) 156 else if (pd->min.w == item->min.w)
157 { 157 {
158 Efl_Ui_List_SegArray_Node *node; 158 Efl_Ui_List_SegArray_Node *node2;
159 Eina_Accessor *nodes = efl_ui_list_segarray_node_accessor_get(pd->segarray); 159 Eina_Accessor *nodes = efl_ui_list_segarray_node_accessor_get(pd->segarray);
160 pd->min.w = min.w; 160 pd->min.w = min.w;
161 161
162 EINA_ACCESSOR_FOREACH(nodes, i, node) 162 EINA_ACCESSOR_FOREACH(nodes, i, node2)
163 { 163 {
164 Efl_Ui_List_Precise_Layouter_Node_Data *nodedata = node->layout_data; 164 Efl_Ui_List_Precise_Layouter_Node_Data *nodedata2 = node2->layout_data;
165 if (pd->min.w < nodedata->min.w) 165 if (pd->min.w < nodedata2->min.w)
166 pd->min.w = nodedata->min.w; 166 pd->min.w = nodedata2->min.w;
167 167
168 if (item->min.w == nodedata->min.w) 168 if (item->min.w == nodedata2->min.w)
169 break; 169 break;
170 } 170 }
171 eina_accessor_free(nodes); 171 eina_accessor_free(nodes);
@@ -280,17 +280,17 @@ _child_removed_cb(void *data, const Efl_Event *event)
280 280
281 if (pd->min.w == litem->min.w) 281 if (pd->min.w == litem->min.w)
282 { 282 {
283 Efl_Ui_List_SegArray_Node *node; 283 Efl_Ui_List_SegArray_Node *node2;
284 Eina_Accessor *nodes = efl_ui_list_segarray_node_accessor_get(pd->segarray); 284 Eina_Accessor *nodes = efl_ui_list_segarray_node_accessor_get(pd->segarray);
285 pd->min.w = 0; 285 pd->min.w = 0;
286 286
287 EINA_ACCESSOR_FOREACH(nodes, i, node) 287 EINA_ACCESSOR_FOREACH(nodes, i, node2)
288 { 288 {
289 Efl_Ui_List_Precise_Layouter_Node_Data *nodedata = node->layout_data; 289 Efl_Ui_List_Precise_Layouter_Node_Data *nodedata2 = node2->layout_data;
290 if (pd->min.w < nodedata->min.w) 290 if (pd->min.w < nodedata2->min.w)
291 pd->min.w = nodedata->min.w; 291 pd->min.w = nodedata2->min.w;
292 292
293 if (litem->min.w == nodedata->min.w) 293 if (litem->min.w == nodedata2->min.w)
294 break; 294 break;
295 } 295 }
296 eina_accessor_free(nodes); 296 eina_accessor_free(nodes);