X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/105fbe1ffa8968cb85fd2cac7192957e522d17ba..a912e81f6409f4ae37ddb1f66d8474decd8da9aa:/src/motif/window.cpp diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 9a7d7eb156..efc13e5273 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -629,12 +629,13 @@ void wxWindow::Lower() void wxWindow::SetLabel(const wxString& label) { - XtVaSetValues((Widget)GetMainWidget(), XmNtitle, label.mb_str(), NULL); + XtVaSetValues((Widget)GetMainWidget(), XmNtitle, + (const char*)label.mb_str(), NULL); } wxString wxWindow::GetLabel() const { - char *label; + char *label = NULL; XtVaGetValues((Widget)GetMainWidget(), XmNtitle, &label, NULL); return wxString(label);