]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
removed an unused variable (patch 788101)
[wxWidgets.git] / src / motif / control.cpp
index a5a8fc3bfa9f1cb85020b73699972550409d2ef3..c972668ad121179a385afb368493ddd65fc4e4e1 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "control.h"
 #endif
 
@@ -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(),