X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..f36b3a915e4543fbbd9c911724404b016972aabc:/include/wx/os2/cursor.h?ds=sidebyside diff --git a/include/wx/os2/cursor.h b/include/wx/os2/cursor.h index 239c87e366..e1595d8daf 100644 --- a/include/wx/os2/cursor.h +++ b/include/wx/os2/cursor.h @@ -6,7 +6,7 @@ // Created: 10/13/99 // RCS-ID: $Id$ // Copyright: (c) David Webster -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_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; }