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)
|
wxCharTypeBuffer(const wxCharTypeBuffer& src)
|
||||||
{
|
: wxScopedCharTypeBuffer<T>(src) {}
|
||||||
this->m_data = src.m_data;
|
|
||||||
this->IncRef();
|
|
||||||
}
|
|
||||||
|
|
||||||
wxCharTypeBuffer& operator=(const CharType *str)
|
wxCharTypeBuffer& operator=(const CharType *str)
|
||||||
{
|
{
|
||||||
@@ -261,13 +258,7 @@ public:
|
|||||||
|
|
||||||
wxCharTypeBuffer& operator=(const wxCharTypeBuffer& src)
|
wxCharTypeBuffer& operator=(const wxCharTypeBuffer& src)
|
||||||
{
|
{
|
||||||
if ( &src == this )
|
wxScopedCharTypeBuffer<T>::operator=(src);
|
||||||
return *this;
|
|
||||||
|
|
||||||
this->DecRef();
|
|
||||||
this->m_data = src.m_data;
|
|
||||||
this->IncRef();
|
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user