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:
@@ -5909,7 +5909,6 @@ EditorNode::EditorNode() {
|
||||
}
|
||||
|
||||
singleton = this;
|
||||
last_checked_version = 0;
|
||||
|
||||
TranslationServer::get_singleton()->set_enabled(false);
|
||||
// Load settings.
|
||||
@@ -6263,8 +6262,6 @@ EditorNode::EditorNode() {
|
||||
dock_vb->add_child(dock_float);
|
||||
|
||||
dock_select_popup->reset_size();
|
||||
dock_select_rect_over_idx = -1;
|
||||
dock_popup_selected_idx = -1;
|
||||
|
||||
for (int i = 0; i < DOCK_SLOT_MAX; i++) {
|
||||
dock_slot[i]->set_custom_minimum_size(Size2(170, 0) * EDSCALE);
|
||||
@@ -6811,7 +6808,6 @@ EditorNode::EditorNode() {
|
||||
// Define corresponding default layout.
|
||||
|
||||
const String docks_section = "docks";
|
||||
overridden_default_layout = -1;
|
||||
default_layout.instantiate();
|
||||
// Dock numbers are based on DockSlot enum value + 1.
|
||||
default_layout->set_value(docks_section, "dock_3", "Scene,Import");
|
||||
@@ -6890,8 +6886,6 @@ EditorNode::EditorNode() {
|
||||
Button *output_button = add_bottom_panel_item(TTR("Output"), log);
|
||||
log->set_tool_button(output_button);
|
||||
|
||||
old_split_ofs = 0;
|
||||
|
||||
center_split->connect("resized", callable_mp(this, &EditorNode::_vp_resized));
|
||||
|
||||
native_shader_source_visualizer = memnew(EditorNativeShaderSourceVisualizer);
|
||||
@@ -7157,7 +7151,6 @@ EditorNode::EditorNode() {
|
||||
}
|
||||
update_spinner_step_msec = OS::get_singleton()->get_ticks_msec();
|
||||
update_spinner_step_frame = Engine::get_singleton()->get_frames_drawn();
|
||||
update_spinner_step = 0;
|
||||
|
||||
editor_plugin_screen = nullptr;
|
||||
editor_plugins_over = memnew(EditorPluginList);
|
||||
@@ -7191,9 +7184,6 @@ EditorNode::EditorNode() {
|
||||
open_imported->connect("custom_action", callable_mp(this, &EditorNode::_inherit_imported));
|
||||
gui_base->add_child(open_imported);
|
||||
|
||||
saved_version = 1;
|
||||
_last_instantiated_scene = nullptr;
|
||||
|
||||
quick_open = memnew(EditorQuickOpen);
|
||||
gui_base->add_child(quick_open);
|
||||
quick_open->connect("quick_open", callable_mp(this, &EditorNode::_quick_opened));
|
||||
|
||||
Reference in New Issue
Block a user