don't duplicate copy ctor and assignment operator code in wxCharTypeBuffer<T>, it was identical to base class' version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -245,10 +245,7 @@ public:
|
||||
}
|
||||
|
||||
wxCharTypeBuffer(const wxCharTypeBuffer& src)
|
||||
{
|
||||
this->m_data = src.m_data;
|
||||
this->IncRef();
|
||||
}
|
||||
: wxScopedCharTypeBuffer<T>(src) {}
|
||||
|
||||
wxCharTypeBuffer& operator=(const CharType *str)
|
||||
{
|
||||
@@ -261,13 +258,7 @@ public:
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user