X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da494b405d0826b343ea6d249bbac27061e11d3e..d60913555cda566d162d73c15c82b78c920a246b:/src/motif/control.cpp diff --git a/src/motif/control.cpp b/src/motif/control.cpp index a5a8fc3bfa..e488c043aa 100644 --- a/src/motif/control.cpp +++ b/src/motif/control.cpp @@ -89,8 +89,7 @@ void wxControl::SetLabel(const wxString& label) if (!widget) return; - wxString buf(wxStripMenuCodes(label)); - wxXmString label_str(buf); + wxXmString label_str(wxStripMenuCodes(label)); XtVaSetValues (widget, XmNlabelString, label_str(),