diff --git a/src/motif/toplevel.cpp b/src/motif/toplevel.cpp index 248b5465c1..a3458c64a7 100644 --- a/src/motif/toplevel.cpp +++ b/src/motif/toplevel.cpp @@ -118,7 +118,7 @@ bool wxTopLevelWindowMotif::Create( wxWindow *parent, wxWindowID id, // Intercept CLOSE messages from the window manager Widget shell = (Widget)GetShellWidget(); Atom WM_DELETE_WINDOW = XmInternAtom( XtDisplay( shell ), - "WM_DELETE_WINDOW", False ); + (char*)"WM_DELETE_WINDOW", False ); // Remove and add WM_DELETE_WINDOW so ours is only handler // This only appears to be necessary for wxDialog, but does not hurt diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 023770f093..523ac5afe3 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -2608,7 +2608,7 @@ void wxGetTextExtent(const wxWindow* window, const wxString& str, if (table == NULL) table = XmeGetDefaultRenderTable(w, XmTEXT_RENDER_TABLE); - rendition = XmRenderTableGetRendition( table, "" ); + rendition = XmRenderTableGetRendition( table, (char*)"" ); XtSetArg( args[count], XmNfont, 0 ); ++count; XtSetArg( args[count], XmNfontType, 0 ); ++count; XmRenditionRetrieve( rendition, args, count );