summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-02-27 22:03:33 +0200
committerCarlos Soriano <csoriano1618@gmail.com>2018-03-01 08:37:50 +0000
commit6286e0a07959f171a4bc8d6c4e3dabd52d8ad8ee (patch)
tree0b91426fa70efeeb90b679f8e8f1d75d74752983 /eel
parent72df1bb3bbefc48c77b0f532cbf3f5db386c7237 (diff)
downloadnautilus-6286e0a07959f171a4bc8d6c4e3dabd52d8ad8ee.tar.gz
general: don’t shadow variables
Shadowing variables is error-prone, since one might mean to refer to a variable that was declared earlier, but has the same name. Additionally, being more strict about variable scoping can help make the code more readable.
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-canvas.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index b3aa886a0..09220f15a 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -3470,7 +3470,6 @@ eel_canvas_set_pixels_per_unit (EelCanvas *canvas,
window = NULL;
if (gtk_widget_get_mapped (widget))
{
- GtkAllocation allocation;
attributes.window_type = GDK_WINDOW_CHILD;
gtk_widget_get_allocation (widget, &allocation);
attributes.x = allocation.x;