]> git.saurik.com Git - wxWidgets.git/commitdiff
use base class copy ctor in wxPGCell and wxPGChoiceEntry copy ctor implementation
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Nov 2008 23:06:44 +0000 (23:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Nov 2008 23:06:44 +0000 (23:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/property.h

index 6198c7166a86ab3a4ba7f6114ddf2cba0801eb26..be9739e6fcc066a8f1d2b4c71224df12062afcd2 100644 (file)
@@ -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,