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:
parent
53317bbe14
commit
f8ab79e68a
258 changed files with 2398 additions and 2421 deletions
|
|
@ -70,34 +70,34 @@ class InspectorDock : public VBoxContainer {
|
|||
OBJECT_METHOD_BASE = 500
|
||||
};
|
||||
|
||||
EditorData *editor_data;
|
||||
EditorData *editor_data = nullptr;
|
||||
|
||||
EditorInspector *inspector;
|
||||
EditorInspector *inspector = nullptr;
|
||||
|
||||
Object *current;
|
||||
Object *current = nullptr;
|
||||
|
||||
Button *backward_button;
|
||||
Button *forward_button;
|
||||
Button *backward_button = nullptr;
|
||||
Button *forward_button = nullptr;
|
||||
|
||||
EditorFileDialog *load_resource_dialog;
|
||||
CreateDialog *new_resource_dialog;
|
||||
Button *resource_new_button;
|
||||
Button *resource_load_button;
|
||||
MenuButton *resource_save_button;
|
||||
MenuButton *resource_extra_button;
|
||||
MenuButton *history_menu;
|
||||
LineEdit *search;
|
||||
EditorFileDialog *load_resource_dialog = nullptr;
|
||||
CreateDialog *new_resource_dialog = nullptr;
|
||||
Button *resource_new_button = nullptr;
|
||||
Button *resource_load_button = nullptr;
|
||||
MenuButton *resource_save_button = nullptr;
|
||||
MenuButton *resource_extra_button = nullptr;
|
||||
MenuButton *history_menu = nullptr;
|
||||
LineEdit *search = nullptr;
|
||||
|
||||
Button *open_docs_button;
|
||||
MenuButton *object_menu;
|
||||
EditorPath *editor_path;
|
||||
Button *open_docs_button = nullptr;
|
||||
MenuButton *object_menu = nullptr;
|
||||
EditorPath *editor_path = nullptr;
|
||||
|
||||
Button *warning;
|
||||
AcceptDialog *warning_dialog;
|
||||
Button *warning = nullptr;
|
||||
AcceptDialog *warning_dialog = nullptr;
|
||||
|
||||
int current_option = -1;
|
||||
ConfirmationDialog *unique_resources_confirmation;
|
||||
Tree *unique_resources_list_tree;
|
||||
ConfirmationDialog *unique_resources_confirmation = nullptr;
|
||||
Tree *unique_resources_list_tree = nullptr;
|
||||
|
||||
EditorPropertyNameProcessor::Style property_name_style;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue