X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..a387938f80a2804f259e7305513231be39620fd2:/include/wx/os2/cursor.h diff --git a/include/wx/os2/cursor.h b/include/wx/os2/cursor.h index eee0aeba20..e1595d8daf 100644 --- a/include/wx/os2/cursor.h +++ b/include/wx/os2/cursor.h @@ -18,7 +18,7 @@ class WXDLLEXPORT wxCursorRefData: public wxGDIImageRefData { public: wxCursorRefData(); - ~wxCursorRefData() { Free(); } + virtual ~wxCursorRefData() { Free(); } virtual void Free(void); bool m_bDestroyCursor; }; // end of CLASS wxCursorRefData @@ -32,8 +32,6 @@ class WXDLLEXPORT wxCursor: public wxBitmap public: wxCursor(); - // Copy constructors - wxCursor(const wxCursor& rCursor) { Ref(rCursor); } wxCursor(const wxImage& rImage); wxCursor( const char acBits[] @@ -50,14 +48,6 @@ public: ); wxCursor(int nCursorType); inline ~wxCursor() { } - - inline wxCursor& operator = (const wxCursor& rCursor) - { - if (*this == rCursor) - return (*this); - Ref(rCursor); - return *this; - } inline bool operator == (const wxCursor& rCursor) const { return m_refData == rCursor.m_refData; } inline bool operator != (const wxCursor& rCursor) const { return m_refData != rCursor.m_refData; }