summaryrefslogtreecommitdiff
path: root/src/math-converter.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-08 00:07:58 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-04-14 22:24:39 +0200
commitd9142d2eed5fd0b03ebc65020f766e635efdef12 (patch)
treeea8cc9adac8fc3abf0571090648b22374a418fe0 /src/math-converter.c
parent4bd2bd7da99284a4baa9cd5543cb04170dde9803 (diff)
downloadmate-calc-d9142d2eed5fd0b03ebc65020f766e635efdef12.tar.bz2
mate-calc-d9142d2eed5fd0b03ebc65020f766e635efdef12.tar.xz
Remove -Wshadow warnings
Diffstat (limited to 'src/math-converter.c')
-rw-r--r--src/math-converter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math-converter.c b/src/math-converter.c
index 1d3e274..10d5336 100644
--- a/src/math-converter.c
+++ b/src/math-converter.c
@@ -145,10 +145,10 @@ update_from_model(MathConverter *converter)
for (unit_iter = unit_category_get_units(category); unit_iter; unit_iter = unit_iter->next) {
Unit *unit = unit_iter->data;
- GtkTreeIter iter;
+ GtkTreeIter iter_new_row;
- gtk_tree_store_append(from_model, &iter, &parent);
- gtk_tree_store_set(from_model, &iter, 0, unit_get_display_name(unit), 1, category, 2, unit, -1);
+ gtk_tree_store_append(from_model, &iter_new_row, &parent);
+ gtk_tree_store_set(from_model, &iter_new_row, 0, unit_get_display_name(unit), 1, category, 2, unit, -1);
}
}
}