summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-08-22 11:47:50 -0400
committerWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-08-22 11:47:50 -0400
commit298a6934b6fd42103ac181d023ac8f37170cd83c (patch)
tree6a3feca91e8e9014132756b0729b9d43e29c1370 /core
parent294e912a843cde241f9abf619f5d40df9ef6ef9f (diff)
Moved member variables to initializer list
Diffstat (limited to 'core')
-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
};