From 35d21c08813242002e31f1d9bbc45fed5a21ebde Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Thu, 22 Mar 2018 00:17:18 -0300 Subject: Fix several in-class initialization clang warning --- core/reference.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/reference.h') diff --git a/core/reference.h b/core/reference.h index a0bdb6225..0d6b1ced6 100644 --- a/core/reference.h +++ b/core/reference.h @@ -63,7 +63,7 @@ public: template class Ref { - T *reference = NULL; + T *reference; void ref(const Ref &p_from) { @@ -213,10 +213,9 @@ public: Ref(T *p_reference) { + reference = NULL; if (p_reference) ref_pointer(p_reference); - else - reference = NULL; } Ref(const Variant &p_variant) { -- cgit v1.2.3-70-g09d2