X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d08a1edf6b41502efecdc8c2d5e1195b1e6d3a8..b8b0e4022e105e102b5c7044638972a3fef38dc1:/src/motif/menuitem.cpp?ds=sidebyside

diff --git a/src/motif/menuitem.cpp b/src/motif/menuitem.cpp
index deaad78a6f..bb464edeae 100644
--- a/src/motif/menuitem.cpp
+++ b/src/motif/menuitem.cpp
@@ -21,6 +21,8 @@
 // headers
 // ----------------------------------------------------------------------------
 
+#include "wx/defs.h"
+
 #include "wx/menu.h"
 #include "wx/menuitem.h"
 #include "wx/utils.h"
@@ -154,12 +156,12 @@ void wxMenuItem::Check(bool bDoCheck)
     }
 }
 
-wxString wxMenuItem::GetLabel() const
+/* static */
+wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
 {
-    return wxStripMenuCodes(m_text);
+    return wxStripMenuCodes(text);
 }
 
-
 // ----------------------------------------------------------------------------
 // wxMenuItemBase
 // ----------------------------------------------------------------------------