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:
@@ -43,13 +43,13 @@ public:
|
|||||||
{
|
{
|
||||||
m_str = src.m_str;
|
m_str = src.m_str;
|
||||||
// no reference count yet...
|
// no reference count yet...
|
||||||
(wxCharBuffer)src.m_str = (char *)NULL;
|
((wxCharBuffer*)&src)->m_str = (char *)NULL;
|
||||||
}
|
}
|
||||||
wxCharBuffer& operator=(const wxCharBuffer& src)
|
wxCharBuffer& operator=(const wxCharBuffer& src)
|
||||||
{
|
{
|
||||||
m_str = src.m_str;
|
m_str = src.m_str;
|
||||||
// no reference count yet...
|
// no reference count yet...
|
||||||
(wxCharBuffer)src.m_str = (char *)NULL;
|
((wxCharBuffer*)&src)->m_str = (char *)NULL;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user