X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/951201d81c463d55edb4b316002c7fa5c8291603..2d55af1dfa7fd1cc2df13a6593fd51591cfcfcb1:/include/wx/string.h?ds=inline diff --git a/include/wx/string.h b/include/wx/string.h index 58a6ed7cd8..1ab7bd3446 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -1800,7 +1800,8 @@ public: // version for NUL-terminated data: static wxString From8BitData(const char *data) { return wxString(data); } - const char *To8BitData() const { return c_str(); } + const wxScopedCharBuffer To8BitData() const + { return wxScopedCharBuffer::CreateNonOwned(wx_str(), length()); } #endif // Unicode/ANSI // conversions with (possible) format conversions: have to return a