From 18415eb5ca44bad29ab72db4607ed92cc6f456e4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Nov 2008 23:06:44 +0000 Subject: [PATCH 1/1] 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 --- include/wx/propgrid/property.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 6198c7166a..be9739e6fc 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -199,11 +199,9 @@ class WXDLLIMPEXP_PROPGRID wxPGCell : public wxObject { public: 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, @@ -649,10 +647,8 @@ class WXDLLIMPEXP_PROPGRID wxPGChoiceEntry : public wxPGCell public: wxPGChoiceEntry(); wxPGChoiceEntry(const wxPGChoiceEntry& other) + : wxPGCell(other) { - m_refData = other.m_refData; - if ( m_refData ) - m_refData->IncRef(); m_value = other.m_value; } wxPGChoiceEntry( const wxString& label, -- 2.47.2