]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
drawing optimization fix
[wxWidgets.git] / src / common / utilscmn.cpp
index 55fbb4463026c0079f1442e79afbcddcbf0326f3..d845ed71da1df03f7503839075bbe8ba81b8f6e7 100644 (file)
@@ -390,6 +390,14 @@ char *wxStripMenuCodes (char *in, char *out)
   return tmpOut;
 }
 
+wxString wxStripMenuCodes(const wxString& str)
+{
+    char *buf = new char[str.Length() + 1];
+    wxStripMenuCodes((char*) (const char*) str, buf);
+    wxString str1(buf);
+    delete[] buf;
+    return str1;
+}
 
 /*
  * Window search functions