X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e25ba908f6a9e03f131e8ce9df19558c3e09a35..aa6d970619f8dd5aa0d157953ad431acfde89963:/include/wx/stubs/cursor.h diff --git a/include/wx/stubs/cursor.h b/include/wx/stubs/cursor.h index 9cf490cdc6..bc6397069f 100644 --- a/include/wx/stubs/cursor.h +++ b/include/wx/stubs/cursor.h @@ -45,7 +45,6 @@ public: // Copy constructors inline wxCursor(const wxCursor& cursor) { Ref(cursor); } - inline wxCursor(const wxCursor* cursor) { if (cursor) Ref(*cursor); } wxCursor(const char bits[], int width, int height, int hotSpotX = -1, int hotSpotY = -1, const char maskBits[] = NULL); @@ -57,7 +56,8 @@ public: wxCursor(int cursor_type); ~wxCursor(); - virtual bool Ok() const { return (m_refData != NULL && M_CURSORDATA->m_hCursor) ; } + // TODO: also verify the internal cursor handle + virtual bool Ok() const { return (m_refData != NULL) ; } inline wxCursor& operator = (const wxCursor& cursor) { if (*this == cursor) return (*this); Ref(cursor); return *this; } inline bool operator == (const wxCursor& cursor) { return m_refData == cursor.m_refData; }