use base class copy ctor in wxPGCell and wxPGChoiceEntry copy ctor implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-11-10 23:06:44 +00:00
parent 0a98423eb0
commit 18415eb5ca

View File

@@ -199,11 +199,9 @@ class WXDLLIMPEXP_PROPGRID wxPGCell : public wxObject
{ {
public: public:
wxPGCell(); wxPGCell();
wxPGCell( const wxPGCell& other ) wxPGCell(const wxPGCell& other)
: wxObject(other)
{ {
m_refData = other.m_refData;
if ( m_refData )
m_refData->IncRef();
} }
wxPGCell( const wxString& text, wxPGCell( const wxString& text,
@@ -649,10 +647,8 @@ class WXDLLIMPEXP_PROPGRID wxPGChoiceEntry : public wxPGCell
public: public:
wxPGChoiceEntry(); wxPGChoiceEntry();
wxPGChoiceEntry(const wxPGChoiceEntry& other) wxPGChoiceEntry(const wxPGChoiceEntry& other)
: wxPGCell(other)
{ {
m_refData = other.m_refData;
if ( m_refData )
m_refData->IncRef();
m_value = other.m_value; m_value = other.m_value;
} }
wxPGChoiceEntry( const wxString& label, wxPGChoiceEntry( const wxString& label,