From: Ove Kaaven Date: Sun, 18 Apr 1999 00:18:39 +0000 (+0000) Subject: Oops. The typecasting was interpreted as a constructor call... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d87c0ac7b9a25c9268f33ed0f2235a851fd91958?ds=inline 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 --- 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; }