From d87c0ac7b9a25c9268f33ed0f2235a851fd91958 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sun, 18 Apr 1999 00:18:39 +0000 Subject: [PATCH] Oops. The typecasting was interpreted as a constructor call... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/buffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/buffer.h b/include/wx/buffer.h index f5fc0f9208..87b0507022 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -43,13 +43,13 @@ public: { m_str = src.m_str; // no reference count yet... - (wxCharBuffer)src.m_str = (char *)NULL; + ((wxCharBuffer*)&src)->m_str = (char *)NULL; } wxCharBuffer& operator=(const wxCharBuffer& src) { m_str = src.m_str; // no reference count yet... - (wxCharBuffer)src.m_str = (char *)NULL; + ((wxCharBuffer*)&src)->m_str = (char *)NULL; return *this; } -- 2.47.2