libui: Zero-initialize counter variables in Layout
This commit is contained in:
parent
669e2747a7
commit
2643f050eb
@ -43,7 +43,7 @@ namespace ui
|
|||||||
Vector<Widget*> m_widgets;
|
Vector<Widget*> m_widgets;
|
||||||
AdjustHeight m_adjust_height;
|
AdjustHeight m_adjust_height;
|
||||||
AdjustWidth m_adjust_width;
|
AdjustWidth m_adjust_width;
|
||||||
int m_used_width;
|
int m_used_width { 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
class VerticalLayout final : public Widget
|
class VerticalLayout final : public Widget
|
||||||
@ -64,6 +64,6 @@ namespace ui
|
|||||||
Vector<Widget*> m_widgets;
|
Vector<Widget*> m_widgets;
|
||||||
AdjustHeight m_adjust_height;
|
AdjustHeight m_adjust_height;
|
||||||
AdjustWidth m_adjust_width;
|
AdjustWidth m_adjust_width;
|
||||||
int m_used_height;
|
int m_used_height { 0 };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user