summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-08-23 08:07:28 +0200
committerGitHub <noreply@github.com>2017-08-23 08:07:28 +0200
commita700ac7cb092993c3c0f489338f98f8656a2c65a (patch)
tree310efb8b1ddea196e979f3404c88c0b385ba96e4
parent1ad68c946eaac6f501a66b5157c0bc4c08a25024 (diff)
parent298a6934b6fd42103ac181d023ac8f37170cd83c (diff)
Merge pull request #10548 from Rubonnek/move-to-initializer-lisst
Moved member variables to initializer list
-rw-r--r--core/global_constants.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/global_constants.cpp b/core/global_constants.cpp
index d296b678b9..cd9a302ba6 100644
--- a/core/global_constants.cpp
+++ b/core/global_constants.cpp
@@ -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
};