X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8855e47254a28f5141524b3aaaac03c2944e997..e412f8928f8cc7d2f21e093f0305137736e9c639:/include/wx/cocoa/cursor.h diff --git a/include/wx/cocoa/cursor.h b/include/wx/cocoa/cursor.h index bd054b0889..fc59048635 100644 --- a/include/wx/cocoa/cursor.h +++ b/include/wx/cocoa/cursor.h @@ -22,7 +22,7 @@ class WXDLLEXPORT wxCursorRefData: public wxObjectRefData friend class WXDLLEXPORT wxCursor; public: wxCursorRefData(); - ~wxCursorRefData(); + virtual ~wxCursorRefData(); protected: int m_width, m_height; @@ -47,9 +47,10 @@ public: int hotSpotX = 0, int hotSpotY = 0); wxCursor(int cursor_type); - ~wxCursor(); + virtual ~wxCursor(); - virtual bool Ok() const { return m_refData ; } + virtual bool Ok() const { return IsOk(); } + virtual bool IsOk() const { return m_refData ; } inline bool operator == (const wxCursor& cursor) const { return m_refData == cursor.m_refData; } inline bool operator != (const wxCursor& cursor) const { return m_refData != cursor.m_refData; }