[libadwaita/msvc: 6/9] tab: Avoid empty initializers




commit 2f75db1792a0a9ecc6db419f680a2978e31e6834
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Dec 30 13:52:45 2021 +0800

    tab: Avoid empty initializers
    
    Visual Studio does not like empty initializers for structs, but since we are
    indeed initializing all fields of the struct before using it, just declare the
    variables unintialized instead.

 src/adw-tab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-tab.c b/src/adw-tab.c
index 6d344cc6..85fbc857 100644
--- a/src/adw-tab.c
+++ b/src/adw-tab.c
@@ -410,7 +410,7 @@ allocate_child (GtkWidget *child,
                 int        width,
                 int        baseline)
 {
-  GtkAllocation child_alloc = {};
+  GtkAllocation child_alloc;
 
   if (gtk_widget_get_direction (child) == GTK_TEXT_DIR_RTL)
     child_alloc.x = parent_width - width - x;


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