Zero initialize all pointer class and struct members
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
class TabContainer : public Container {
|
||||
GDCLASS(TabContainer, Container);
|
||||
|
||||
TabBar *tab_bar;
|
||||
TabBar *tab_bar = nullptr;
|
||||
bool tabs_visible = true;
|
||||
bool all_tabs_in_front = false;
|
||||
bool menu_hovered = false;
|
||||
|
||||
Reference in New Issue
Block a user