summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-04-04 15:06:57 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-04-04 19:49:50 +0200
commitf8ab79e68af20e18e1d868b64d6dfd0c429bc554 (patch)
treea9d2df2e2df939c189135b1c36a01e06b37b80b2 /editor/project_settings_editor.h
parent53317bbe146dd19a919685df8d846c55568daba1 (diff)
downloadredot-engine-f8ab79e68af20e18e1d868b64d6dfd0c429bc554.tar.gz
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.
Diffstat (limited to 'editor/project_settings_editor.h')
-rw-r--r--editor/project_settings_editor.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/editor/project_settings_editor.h b/editor/project_settings_editor.h
index 5dc1ddc0a8..c9d849abec 100644
--- a/editor/project_settings_editor.h
+++ b/editor/project_settings_editor.h
@@ -47,34 +47,34 @@ class ProjectSettingsEditor : public AcceptDialog {
GDCLASS(ProjectSettingsEditor, AcceptDialog);
static ProjectSettingsEditor *singleton;
- ProjectSettings *ps;
- Timer *timer;
-
- TabContainer *tab_container;
- SectionedInspector *general_settings_inspector;
- ActionMapEditor *action_map_editor;
- LocalizationEditor *localization_editor;
- EditorAutoloadSettings *autoload_settings;
- ShaderGlobalsEditor *shaders_global_variables_editor;
- EditorPluginSettings *plugin_settings;
-
- LineEdit *search_box;
- CheckButton *advanced;
-
- LineEdit *property_box;
- OptionButton *feature_box;
- OptionButton *type_box;
- Button *add_button;
- Button *del_button;
-
- Label *restart_label;
- TextureRect *restart_icon;
- PanelContainer *restart_container;
- Button *restart_close_button;
-
- ImportDefaultsEditor *import_defaults_editor;
- EditorData *data;
- UndoRedo *undo_redo;
+ ProjectSettings *ps = nullptr;
+ Timer *timer = nullptr;
+
+ TabContainer *tab_container = nullptr;
+ SectionedInspector *general_settings_inspector = nullptr;
+ ActionMapEditor *action_map_editor = nullptr;
+ LocalizationEditor *localization_editor = nullptr;
+ EditorAutoloadSettings *autoload_settings = nullptr;
+ ShaderGlobalsEditor *shaders_global_variables_editor = nullptr;
+ EditorPluginSettings *plugin_settings = nullptr;
+
+ LineEdit *search_box = nullptr;
+ CheckButton *advanced = nullptr;
+
+ LineEdit *property_box = nullptr;
+ OptionButton *feature_box = nullptr;
+ OptionButton *type_box = nullptr;
+ Button *add_button = nullptr;
+ Button *del_button = nullptr;
+
+ Label *restart_label = nullptr;
+ TextureRect *restart_icon = nullptr;
+ PanelContainer *restart_container = nullptr;
+ Button *restart_close_button = nullptr;
+
+ ImportDefaultsEditor *import_defaults_editor = nullptr;
+ EditorData *data = nullptr;
+ UndoRedo *undo_redo = nullptr;
void _advanced_toggled(bool p_button_pressed);
void _property_box_changed(const String &p_text);