git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59900
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
wxCharTypeBuffer(const wxCharTypeBuffer& src)
- {
- this->m_data = src.m_data;
- this->IncRef();
- }
+ : wxScopedCharTypeBuffer<T>(src) {}
wxCharTypeBuffer& operator=(const CharType *str)
{
wxCharTypeBuffer& operator=(const wxCharTypeBuffer& src)
{
- if ( &src == this )
- return *this;
-
- this->DecRef();
- this->m_data = src.m_data;
- this->IncRef();
-
+ wxScopedCharTypeBuffer<T>::operator=(src);
return *this;
}