diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index 998ec54bce..3f14837ed5 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -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 */); }