Merge pull request #43742 from qarmin/editor_modules_default_values
Initialize class/struct variables with default values in platform/ and editor/
This commit is contained in:
commit
90bdba576a
87 changed files with 411 additions and 540 deletions
|
|
@ -42,7 +42,7 @@ private:
|
|||
Color color;
|
||||
String start_key;
|
||||
String end_key;
|
||||
bool line_only;
|
||||
bool line_only = false;
|
||||
};
|
||||
Vector<ColorRegion> color_regions;
|
||||
Map<int, int> color_region_cache;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class BindingsGenerator {
|
|||
struct ConstantInterface {
|
||||
String name;
|
||||
String proxy_name;
|
||||
int value;
|
||||
int value = 0;
|
||||
const DocData::ConstantDoc *const_doc;
|
||||
|
||||
ConstantInterface() {}
|
||||
|
|
@ -75,7 +75,7 @@ class BindingsGenerator {
|
|||
struct PropertyInterface {
|
||||
StringName cname;
|
||||
String proxy_name;
|
||||
int index;
|
||||
int index = 0;
|
||||
|
||||
StringName setter;
|
||||
StringName getter;
|
||||
|
|
@ -480,7 +480,7 @@ class BindingsGenerator {
|
|||
String im_type_out; // Return type for the C# method declaration. Also used as companion of [unique_siq]
|
||||
String im_sig; // Signature for the C# method declaration
|
||||
String unique_sig; // Unique signature to avoid duplicates in containers
|
||||
bool editor_only;
|
||||
bool editor_only = false;
|
||||
|
||||
InternalCall() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,10 +55,10 @@ MonoAssemblyName *new_mono_assembly_name() {
|
|||
|
||||
struct AssemblyRefInfo {
|
||||
String name;
|
||||
uint16_t major;
|
||||
uint16_t minor;
|
||||
uint16_t build;
|
||||
uint16_t revision;
|
||||
uint16_t major = 0;
|
||||
uint16_t minor = 0;
|
||||
uint16_t build = 0;
|
||||
uint16_t revision = 0;
|
||||
};
|
||||
|
||||
AssemblyRefInfo get_assemblyref_name(MonoImage *p_image, int index) {
|
||||
|
|
|
|||
|
|
@ -45,22 +45,22 @@ public:
|
|||
};
|
||||
|
||||
String name;
|
||||
Type type;
|
||||
Type type = NAMESPACE_DECL;
|
||||
};
|
||||
|
||||
struct ClassDecl {
|
||||
String name;
|
||||
String namespace_;
|
||||
Vector<String> base;
|
||||
bool nested;
|
||||
bool nested = false;
|
||||
};
|
||||
|
||||
private:
|
||||
String code;
|
||||
int idx;
|
||||
int line;
|
||||
int idx = 0;
|
||||
int line = 0;
|
||||
String error_str;
|
||||
bool error;
|
||||
bool error = false;
|
||||
Variant value;
|
||||
|
||||
Vector<ClassDecl> classes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue