diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-04-03 21:01:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-03 21:01:58 +0200 |
commit | 95b499644ee5db3e05803c1e06f3cdce05b649ab (patch) | |
tree | 8bf868e3440e2732a389753ac7fffacaf3181555 /modules/mono/editor/mono_bottom_panel.cpp | |
parent | 9ad180029876a53747df577d8925a055f6b9687e (diff) | |
parent | 3f86fefb64cc8caeaeb1eb65471dfd18191eae85 (diff) |
Merge pull request #17834 from Rubonnek/move-to-initializer-list
Move GodotSharp and MonoBuildTab member variables to initializer list
Diffstat (limited to 'modules/mono/editor/mono_bottom_panel.cpp')
-rw-r--r-- | modules/mono/editor/mono_bottom_panel.cpp | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/modules/mono/editor/mono_bottom_panel.cpp b/modules/mono/editor/mono_bottom_panel.cpp index 32aec2a3b5..f1cf0bcdf5 100644 --- a/modules/mono/editor/mono_bottom_panel.cpp +++ b/modules/mono/editor/mono_bottom_panel.cpp @@ -437,21 +437,16 @@ void MonoBuildTab::_bind_methods() { ClassDB::bind_method("_issue_activated", &MonoBuildTab::_issue_activated); } -MonoBuildTab::MonoBuildTab(const MonoBuildInfo &p_build_info, const String &p_logs_dir) { - - build_info = p_build_info; - logs_dir = p_logs_dir; - - build_exited = false; - - issues_list = memnew(ItemList); +MonoBuildTab::MonoBuildTab(const MonoBuildInfo &p_build_info, const String &p_logs_dir) : + build_info(p_build_info), + logs_dir(p_logs_dir), + build_exited(false), + issues_list(memnew(ItemList)), + error_count(0), + warning_count(0), + errors_visible(true), + warnings_visible(true) { issues_list->set_v_size_flags(SIZE_EXPAND_FILL); issues_list->connect("item_activated", this, "_issue_activated"); add_child(issues_list); - - error_count = 0; - warning_count = 0; - - errors_visible = true; - warnings_visible = true; } |