X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbc535ff084f61ec376f339c515d96d74065c18b..a1ee9ea29c3a00779d97be65b9f99e8f644b9a1a:/src/common/utilscmn.cpp diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index b76359d8d9..d845ed71da 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -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 @@ -524,7 +532,11 @@ wxFindMenuItemId (wxFrame * frame, const wxString& menuString, const wxString& i wxDebugStreamBuf::wxDebugStreamBuf(void) { - if (allocate()) setp(base(),ebuf()); + // usage doesn't need this, and i have no idea how to simulate it. +#if wxUSE_IOSTREAMH + if (allocate()) + setp(base(),ebuf()); +#endif } int wxDebugStreamBuf::overflow(int WXUNUSED(i))