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
This commit is contained in:
Ove Kaaven
1999-04-18 00:18:39 +00:00
parent 6cf7c00f3b
commit d87c0ac7b9

View File

@@ -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;
}