[libadwaita] squeezer: Reduce the scope of some variables



commit 8eae01f3e47ac6dc08b3cb077a01fb094712b932
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Jul 23 15:00:30 2021 +0200

    squeezer: Reduce the scope of some variables

 src/adw-squeezer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/adw-squeezer.c b/src/adw-squeezer.c
index 35a2ae01..28ee0e91 100644
--- a/src/adw-squeezer.c
+++ b/src/adw-squeezer.c
@@ -875,12 +875,12 @@ adw_squeezer_size_allocate (GtkWidget *widget,
 {
   AdwSqueezer *self = ADW_SQUEEZER (widget);
   AdwSqueezerPage *page = NULL;
-  GtkWidget *child = NULL;
-  int child_min;
   GList *l;
   GtkAllocation child_allocation;
 
   for (l = self->children; l; l = l->next) {
+    GtkWidget *child = NULL;
+    int child_min;
     int for_size = -1;
 
     page = l->data;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]