From 62981e156146ebe203a00c9a34b3101b2323ce4b Mon Sep 17 00:00:00 2001 From: catalinr Date: Mon, 14 Oct 2019 21:34:00 +0300 Subject: [PATCH] Move member initialization in default ctor --- include/wx/any.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/any.h b/include/wx/any.h index 3d057c8a60..4883214b46 100644 --- a/include/wx/any.h +++ b/include/wx/any.h @@ -41,6 +41,11 @@ union wxAnyValueBuffer void* m_ptr; wxByte m_buffer[WX_ANY_VALUE_BUFFER_SIZE]; + + wxAnyValueBuffer() + { + m_ptr = NULL; + } }; // @@ -730,7 +735,6 @@ public: wxAny() { m_type = wxAnyNullValueType; - m_buffer = { 0 }; } /**