X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8c86bd0ba6afbdea60fb6c6986cb72e2d750a8d..3e4e0908a7c8217f87d1c7a521f590c1de3bc0f9:/src/common/fs_mem.cpp diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index 2e9927590d..3ad28089e6 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -70,7 +70,7 @@ private: #endif // wxUSE_DATETIME } - DECLARE_NO_COPY_CLASS(wxMemoryFSFile) + wxDECLARE_NO_COPY_CLASS(wxMemoryFSFile); }; #if wxUSE_BASE @@ -186,9 +186,13 @@ void wxMemoryFSHandlerBase::AddFileWithMimeType(const wxString& filename, const wxString& textdata, const wxString& mimetype) { - AddFileWithMimeType(filename, - (const void*) textdata.mb_str(), textdata.length(), - mimetype); + AddFileWithMimeType + ( + filename, + static_cast(textdata.To8BitData()), + wxStrlen(static_cast(textdata.To8BitData())), + mimetype + ); }