From 08f22f1cf0e0d133b7ea763dc3886cf462c6fcb2 Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Sat, 8 Dec 2018 15:07:33 -0500 Subject: Moved member variables to initializer list --- core/func_ref.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/func_ref.cpp') diff --git a/core/func_ref.cpp b/core/func_ref.cpp index c707f1c4cb..d9d1a2b799 100644 --- a/core/func_ref.cpp +++ b/core/func_ref.cpp @@ -69,7 +69,6 @@ void FuncRef::_bind_methods() { ClassDB::bind_method(D_METHOD("set_function", "name"), &FuncRef::set_function); } -FuncRef::FuncRef() { - - id = 0; +FuncRef::FuncRef() : + id(0) { } -- cgit v1.2.3