X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b2f55531a7ed7fc286aae49efc8d123c7ae8ed8..b404a8f3b072129c107c6d9a5e0f6f53cd34807b:/src/msw/cursor.cpp diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index dec1344042..74f57dcf52 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -105,8 +105,7 @@ public: virtual void OnExit() { - delete gs_globalCursor; - gs_globalCursor = NULL; + wxDELETE(gs_globalCursor); } }; @@ -237,12 +236,12 @@ wxCursor::wxCursor(const wxString& filename, switch ( kind ) { case wxBITMAP_TYPE_CUR_RESOURCE: - hcursor = ::LoadCursor(wxGetInstance(), filename.fn_str()); + hcursor = ::LoadCursor(wxGetInstance(), filename.t_str()); break; #ifndef __WXWINCE__ case wxBITMAP_TYPE_CUR: - hcursor = ::LoadCursorFromFile(filename.fn_str()); + hcursor = ::LoadCursorFromFile(filename.t_str()); break; #endif @@ -392,7 +391,7 @@ const wxCursor *wxGetGlobalCursor() void wxSetCursor(const wxCursor& cursor) { - if ( cursor.Ok() ) + if ( cursor.IsOk() ) { ::SetCursor(GetHcursorOf(cursor));