libui: Zero-initialize counter variables in Layout

This commit is contained in:
apio 2023-09-11 07:31:31 +02:00
parent 26623f8a0d
commit d892e431b3
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -43,7 +43,7 @@ namespace ui
Vector<Widget*> 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<Widget*> m_widgets;
AdjustHeight m_adjust_height;
AdjustWidth m_adjust_width;
int m_used_height;
int m_used_height { 0 };
};
}