X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..55809d1394516044a90fa34b12070d0f3e9f1439:/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); }