Move GodotSharp and MonoBuildTab member variables to initializer list
This commit is contained in:
parent
4a5723f59e
commit
3f86fefb64
|
@ -525,11 +525,10 @@ void GodotSharpBuilds::BuildProcess::start(bool p_blocking) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GodotSharpBuilds::BuildProcess::BuildProcess(const MonoBuildInfo &p_build_info, GodotSharpBuild_ExitCallback p_callback) {
|
GodotSharpBuilds::BuildProcess::BuildProcess(const MonoBuildInfo &p_build_info, GodotSharpBuild_ExitCallback p_callback) :
|
||||||
|
build_info(p_build_info),
|
||||||
build_info = p_build_info;
|
build_tab(NULL),
|
||||||
build_tab = NULL;
|
exit_callback(p_callback),
|
||||||
exit_callback = p_callback;
|
exited(true),
|
||||||
exited = true;
|
exit_code(-1) {
|
||||||
exit_code = -1;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -437,21 +437,16 @@ void MonoBuildTab::_bind_methods() {
|
||||||
ClassDB::bind_method("_issue_activated", &MonoBuildTab::_issue_activated);
|
ClassDB::bind_method("_issue_activated", &MonoBuildTab::_issue_activated);
|
||||||
}
|
}
|
||||||
|
|
||||||
MonoBuildTab::MonoBuildTab(const MonoBuildInfo &p_build_info, const String &p_logs_dir) {
|
MonoBuildTab::MonoBuildTab(const MonoBuildInfo &p_build_info, const String &p_logs_dir) :
|
||||||
|
build_info(p_build_info),
|
||||||
build_info = p_build_info;
|
logs_dir(p_logs_dir),
|
||||||
logs_dir = p_logs_dir;
|
build_exited(false),
|
||||||
|
issues_list(memnew(ItemList)),
|
||||||
build_exited = false;
|
error_count(0),
|
||||||
|
warning_count(0),
|
||||||
issues_list = memnew(ItemList);
|
errors_visible(true),
|
||||||
|
warnings_visible(true) {
|
||||||
issues_list->set_v_size_flags(SIZE_EXPAND_FILL);
|
issues_list->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||||
issues_list->connect("item_activated", this, "_issue_activated");
|
issues_list->connect("item_activated", this, "_issue_activated");
|
||||||
add_child(issues_list);
|
add_child(issues_list);
|
||||||
|
|
||||||
error_count = 0;
|
|
||||||
warning_count = 0;
|
|
||||||
|
|
||||||
errors_visible = true;
|
|
||||||
warnings_visible = true;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue