You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Style: Partially apply clang-tidy's cppcoreguidelines-pro-type-member-init
Didn't commit all the changes where it wants to initialize a struct
with `{}`. Should be reviewed in a separate PR.
Option `IgnoreArrays` enabled for now to be conservative, can be
disabled to see if it proposes more useful changes.
Also fixed manually a handful of other missing initializations / moved
some from constructors.
This commit is contained in:
@@ -1583,11 +1583,9 @@ bool EditorFileDialog::are_previews_enabled() {
|
||||
EditorFileDialog::EditorFileDialog() {
|
||||
show_hidden_files = default_show_hidden_files;
|
||||
display_mode = default_display_mode;
|
||||
local_history_pos = 0;
|
||||
VBoxContainer *vbc = memnew(VBoxContainer);
|
||||
add_child(vbc);
|
||||
|
||||
mode = FILE_MODE_SAVE_FILE;
|
||||
set_title(TTR("Save a File"));
|
||||
|
||||
ED_SHORTCUT("file_dialog/go_back", TTR("Go Back"), KeyModifierMask::ALT | Key::LEFT);
|
||||
@@ -1795,7 +1793,6 @@ EditorFileDialog::EditorFileDialog() {
|
||||
item_vb->add_child(file_box);
|
||||
|
||||
dir_access = DirAccess::create(DirAccess::ACCESS_RESOURCES);
|
||||
access = ACCESS_RESOURCES;
|
||||
_update_drives();
|
||||
|
||||
connect("confirmed", callable_mp(this, &EditorFileDialog::_action_pressed));
|
||||
@@ -1808,7 +1805,6 @@ EditorFileDialog::EditorFileDialog() {
|
||||
filter->connect("item_selected", callable_mp(this, &EditorFileDialog::_filter_selected));
|
||||
|
||||
confirm_save = memnew(ConfirmationDialog);
|
||||
//confirm_save->set_as_top_level(true);
|
||||
add_child(confirm_save);
|
||||
confirm_save->connect("confirmed", callable_mp(this, &EditorFileDialog::_save_confirm_pressed));
|
||||
|
||||
@@ -1843,9 +1839,6 @@ EditorFileDialog::EditorFileDialog() {
|
||||
if (register_func) {
|
||||
register_func(this);
|
||||
}
|
||||
|
||||
preview_wheel_timeout = 0;
|
||||
preview_wheel_index = 0;
|
||||
}
|
||||
|
||||
EditorFileDialog::~EditorFileDialog() {
|
||||
|
||||
Reference in New Issue
Block a user