X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd304d989b2c5c35ac1a849d508cb21f4d54609e..1a19e369fbce12ce4d8097fc08609a436748a6ed:/src/motif/cursor.cpp diff --git a/src/motif/cursor.cpp b/src/motif/cursor.cpp index 7e7fa61066..c8ea7b6b56 100644 --- a/src/motif/cursor.cpp +++ b/src/motif/cursor.cpp @@ -315,7 +315,8 @@ wxCursor::wxCursor(const wxString& name, long flags, int hotSpotX, int hotSpotY) int screen_num = DefaultScreen (dpy); int value = XReadBitmapFile (dpy, RootWindow (dpy, DefaultScreen (dpy)), - (char*) (const char*) name, &w, &h, &pixmap, &hotX, &hotY); + wxConstCast(name.c_str(), char), + &w, &h, &pixmap, &hotX, &hotY); M_BITMAPDATA->m_width = w; M_BITMAPDATA->m_height = h;