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:
Václav Slavík
2009-03-28 09:35:53 +00:00
parent d93db33706
commit 3339414ae8

View File

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