summaryrefslogtreecommitdiffstats
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-11 10:31:04 +0200
committerGitHub <noreply@github.com>2017-08-11 10:31:04 +0200
commit306c0471f7e1450340823dbd4a72b183d486c512 (patch)
treeabe207af243ba9b2090f5e059bbc08f81876d7e3 /core/variant_call.cpp
parent8e6768c963b0ed825e4a4dbf3aeee5907168d697 (diff)
parent6d112a68b685cde609d0d90b2c57f2db6a7b9df6 (diff)
downloadredot-engine-306c0471f7e1450340823dbd4a72b183d486c512.tar.gz
Merge pull request #9987 from Rubonnek/move-members-to-initilization-list
Moved member variables from constructor to initialization list
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 4a806aec6c..aabc2546bc 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -130,9 +130,9 @@ struct _VariantCall {
StringName name;
Variant::Type type;
Arg() { type = Variant::NIL; }
- Arg(Variant::Type p_type, const StringName &p_name) {
- name = p_name;
- type = p_type;
+ Arg(Variant::Type p_type, const StringName &p_name)
+ : name(p_name),
+ type(p_type) {
}
};