[libadwaita/msvc: 7/11] tab: Avoid empty initializers
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 7/11] tab: Avoid empty initializers
- Date: Wed, 19 Jan 2022 15:19:56 +0000 (UTC)
commit 6aea1ea44bcea44e0664892a0624e847f2b7253e
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]