X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/155ecd4c4221d3bbc7aa93d472d11948f21d21ab..d2b23b67301bd2d286366d4326a21da3132558fa:/src/msw/cursor.cpp diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index 47a2aca746..5093518a98 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -34,10 +34,9 @@ #include "wx/settings.h" #include "wx/intl.h" #include "wx/image.h" + #include "wx/module.h" #endif -#include "wx/module.h" - #include "wx/msw/private.h" #include "wx/msw/missing.h" // IDC_HAND @@ -216,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 */); } @@ -387,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;