From 2643f050eba16f9253c4f46b90c68bdad706bb40 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 11 Sep 2023 07:31:31 +0200 Subject: [PATCH] libui: Zero-initialize counter variables in Layout --- libui/include/ui/Layout.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libui/include/ui/Layout.h b/libui/include/ui/Layout.h index 62ebe8c8..66e4976b 100644 --- a/libui/include/ui/Layout.h +++ b/libui/include/ui/Layout.h @@ -43,7 +43,7 @@ namespace ui Vector m_widgets; AdjustHeight m_adjust_height; AdjustWidth m_adjust_width; - int m_used_width; + int m_used_width { 0 }; }; class VerticalLayout final : public Widget @@ -64,6 +64,6 @@ namespace ui Vector m_widgets; AdjustHeight m_adjust_height; AdjustWidth m_adjust_width; - int m_used_height; + int m_used_height { 0 }; }; }