]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/cursor.cpp
Fixed copyrights, corrected licence spelling
[wxWidgets.git] / src / motif / cursor.cpp
index 7e7fa61066e5e4276ffad20ce4be04c22a57bc8a..c8ea7b6b5644761a1ee7a167a205a457705ebf92 100644 (file)
@@ -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;