Initialize class/struct variables with default values in platform/ and editor/

This commit is contained in:
Rafał Mikrut 2020-11-24 10:12:55 +01:00
parent d1231be1c8
commit e1811b689b
87 changed files with 411 additions and 540 deletions

View file

@ -50,20 +50,14 @@ class EditorAutoloadSettings : public VBoxContainer {
struct AutoLoadInfo {
String name;
String path;
bool is_singleton;
bool in_editor;
int order;
Node *node;
bool is_singleton = false;
bool in_editor = false;
int order = 0;
Node *node = nullptr;
bool operator==(const AutoLoadInfo &p_info) const {
return order == p_info.order;
}
AutoLoadInfo() {
is_singleton = false;
in_editor = false;
node = nullptr;
}
};
List<AutoLoadInfo> autoload_cache;