X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a1498c08b07625baa087622e75637a2f15325b6..2d6dd9c09e7084d402fc923d2f09d8b7158a1a04:/include/wx/x11/pen.h diff --git a/include/wx/x11/pen.h b/include/wx/x11/pen.h index d5c042a14d..eeff1b0756 100644 --- a/include/wx/x11/pen.h +++ b/include/wx/x11/pen.h @@ -36,10 +36,7 @@ public: wxPen( const wxColour &colour, int width = 1, int style = wxSOLID ); wxPen( const wxBitmap &stipple, int width ); - ~wxPen(); - - wxPen( const wxPen& pen ) { Ref(pen); } - wxPen& operator = ( const wxPen& pen ) { Ref(pen); return *this; } + virtual ~wxPen(); bool Ok() const { return m_refData != NULL; } @@ -65,7 +62,7 @@ public: wxDash* GetDash() const; wxBitmap* GetStipple() const; -private: +protected: // ref counting code virtual wxObjectRefData *CreateRefData() const; virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;