mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #10548 from Rubonnek/move-to-initializer-lisst
Moved member variables to initializer list
This commit is contained in:
commit
a700ac7cb0
@ -45,15 +45,15 @@ struct _GlobalConstant {
|
||||
_GlobalConstant() {}
|
||||
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
_GlobalConstant(const StringName &p_enum_name, const char *p_name, int p_value) {
|
||||
enum_name = p_enum_name;
|
||||
name = p_name;
|
||||
value = p_value;
|
||||
_GlobalConstant(const StringName &p_enum_name, const char *p_name, int p_value)
|
||||
: enum_name(p_enum_name),
|
||||
name(p_name),
|
||||
value(p_value) {
|
||||
}
|
||||
#else
|
||||
_GlobalConstant(const char *p_name, int p_value) {
|
||||
name = p_name;
|
||||
value = p_value;
|
||||
_GlobalConstant(const char *p_name, int p_value)
|
||||
: name(p_name),
|
||||
value(p_value) {
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user