X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e70f525fa60baefd9878758374b2019b804df82..fc9361e3ec5b81a7e8c32d93a03aea0b2cd3e045:/include/wx/os2/cursor.h diff --git a/include/wx/os2/cursor.h b/include/wx/os2/cursor.h index eee0aeba20..0f465ccb55 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[] @@ -51,16 +49,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; } - inline WXHCURSOR GetHCURSOR(void) const { return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0); } inline void SetHCURSOR(WXHCURSOR hCursor) { SetHandle((WXHANDLE)hCursor); }