X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57bd4c6031d438f11af0ec540136f49a928b923c..c94f845b1602d44ccd7c7542afffde666adbb2f0:/src/msw/cursor.cpp diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index cdc7992e51..5093518a98 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -27,7 +27,6 @@ #include "wx/cursor.h" #ifndef WX_PRECOMP - #include "wx/msw/missing.h" // IDC_HAND #include "wx/utils.h" #include "wx/app.h" #include "wx/bitmap.h" @@ -39,6 +38,7 @@ #endif #include "wx/msw/private.h" +#include "wx/msw/missing.h" // IDC_HAND // define functions missing in MicroWin #ifdef __WXMICROWIN__ @@ -215,9 +215,7 @@ wxCursor::wxCursor(const wxImage& image) wxLogWarning(_("Failed to create cursor.")); return; } -#else - HCURSOR hcursor = 0; -#endif +#endif // wxUSE_WXDIB m_refData = new wxCursorRefData(hcursor, true /* delete it later */); } @@ -386,16 +384,6 @@ wxCursor::~wxCursor() // other wxCursor functions // ---------------------------------------------------------------------------- -bool wxCursor::operator==(const wxCursor& cursor) const -{ - if ( !m_refData ) - return !cursor.m_refData; - - return cursor.m_refData && - ((wxCursorRefData *)m_refData)->m_hCursor == - ((wxCursorRefData *)cursor.m_refData)->m_hCursor; -} - wxGDIImageRefData *wxCursor::CreateData() const { return new wxCursorRefData;