summaryrefslogtreecommitdiffstats
path: root/core/math/expression.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-12-12 09:25:34 +0100
committerGitHub <noreply@github.com>2018-12-12 09:25:34 +0100
commitc8a5400654ebc73c9af28d051f367b8eaa75212e (patch)
treef982f6204781746b460fb1909f90224433df744a /core/math/expression.cpp
parentecc588867482c0b32c3896591f55630baba1ef7c (diff)
parent08f22f1cf0e0d133b7ea763dc3886cf462c6fcb2 (diff)
downloadredot-engine-c8a5400654ebc73c9af28d051f367b8eaa75212e.tar.gz
Merge pull request #24241 from Rubonnek/move-to-initializer-list
Moved member variables to initializer list
Diffstat (limited to 'core/math/expression.cpp')
-rw-r--r--core/math/expression.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/math/expression.cpp b/core/math/expression.cpp
index 0cfb54234c..7f3439e956 100644
--- a/core/math/expression.cpp
+++ b/core/math/expression.cpp
@@ -2157,13 +2157,13 @@ void Expression::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_error_text"), &Expression::get_error_text);
}
-Expression::Expression() {
- output_type = Variant::NIL;
- error_set = true;
- root = NULL;
- nodes = NULL;
- sequenced = false;
- execution_error = false;
+Expression::Expression() :
+ output_type(Variant::NIL),
+ sequenced(false),
+ error_set(true),
+ root(NULL),
+ nodes(NULL),
+ execution_error(false) {
}
Expression::~Expression() {