You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
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:
@@ -57,48 +57,48 @@ private:
|
||||
int staged_files_count;
|
||||
List<StringName> available_addons;
|
||||
|
||||
PopupMenu *version_control_actions;
|
||||
ConfirmationDialog *metadata_dialog;
|
||||
OptionButton *metadata_selection;
|
||||
AcceptDialog *set_up_dialog;
|
||||
VBoxContainer *set_up_vbc;
|
||||
HBoxContainer *set_up_hbc;
|
||||
Label *set_up_vcs_label;
|
||||
OptionButton *set_up_choice;
|
||||
PanelContainer *set_up_init_settings;
|
||||
Button *set_up_init_button;
|
||||
RichTextLabel *set_up_vcs_status;
|
||||
Button *set_up_ok_button;
|
||||
PopupMenu *version_control_actions = nullptr;
|
||||
ConfirmationDialog *metadata_dialog = nullptr;
|
||||
OptionButton *metadata_selection = nullptr;
|
||||
AcceptDialog *set_up_dialog = nullptr;
|
||||
VBoxContainer *set_up_vbc = nullptr;
|
||||
HBoxContainer *set_up_hbc = nullptr;
|
||||
Label *set_up_vcs_label = nullptr;
|
||||
OptionButton *set_up_choice = nullptr;
|
||||
PanelContainer *set_up_init_settings = nullptr;
|
||||
Button *set_up_init_button = nullptr;
|
||||
RichTextLabel *set_up_vcs_status = nullptr;
|
||||
Button *set_up_ok_button = nullptr;
|
||||
|
||||
HashMap<ChangeType, String> change_type_to_strings;
|
||||
HashMap<ChangeType, Color> change_type_to_color;
|
||||
|
||||
VBoxContainer *version_commit_dock;
|
||||
VBoxContainer *commit_box_vbc;
|
||||
HSplitContainer *stage_tools;
|
||||
Tree *stage_files;
|
||||
TreeItem *new_files;
|
||||
TreeItem *modified_files;
|
||||
TreeItem *renamed_files;
|
||||
TreeItem *deleted_files;
|
||||
TreeItem *typechange_files;
|
||||
Label *staging_area_label;
|
||||
HSplitContainer *stage_buttons;
|
||||
Button *stage_all_button;
|
||||
Button *stage_selected_button;
|
||||
Button *refresh_button;
|
||||
TextEdit *commit_message;
|
||||
Button *commit_button;
|
||||
Label *commit_status;
|
||||
VBoxContainer *version_commit_dock = nullptr;
|
||||
VBoxContainer *commit_box_vbc = nullptr;
|
||||
HSplitContainer *stage_tools = nullptr;
|
||||
Tree *stage_files = nullptr;
|
||||
TreeItem *new_files = nullptr;
|
||||
TreeItem *modified_files = nullptr;
|
||||
TreeItem *renamed_files = nullptr;
|
||||
TreeItem *deleted_files = nullptr;
|
||||
TreeItem *typechange_files = nullptr;
|
||||
Label *staging_area_label = nullptr;
|
||||
HSplitContainer *stage_buttons = nullptr;
|
||||
Button *stage_all_button = nullptr;
|
||||
Button *stage_selected_button = nullptr;
|
||||
Button *refresh_button = nullptr;
|
||||
TextEdit *commit_message = nullptr;
|
||||
Button *commit_button = nullptr;
|
||||
Label *commit_status = nullptr;
|
||||
|
||||
PanelContainer *version_control_dock;
|
||||
Button *version_control_dock_button;
|
||||
VBoxContainer *diff_vbc;
|
||||
HBoxContainer *diff_hbc;
|
||||
Button *diff_refresh_button;
|
||||
Label *diff_file_name;
|
||||
Label *diff_heading;
|
||||
RichTextLabel *diff;
|
||||
PanelContainer *version_control_dock = nullptr;
|
||||
Button *version_control_dock_button = nullptr;
|
||||
VBoxContainer *diff_vbc = nullptr;
|
||||
HBoxContainer *diff_hbc = nullptr;
|
||||
Button *diff_refresh_button = nullptr;
|
||||
Label *diff_file_name = nullptr;
|
||||
Label *diff_heading = nullptr;
|
||||
RichTextLabel *diff = nullptr;
|
||||
|
||||
void _populate_available_vcs_names();
|
||||
void _create_vcs_metadata_files();
|
||||
|
||||
Reference in New Issue
Block a user