#endif // wxUSE_DATETIME
}
- DECLARE_NO_COPY_CLASS(wxMemoryFSFile)
+ wxDECLARE_NO_COPY_CLASS(wxMemoryFSFile);
};
#if wxUSE_BASE
const wxString& textdata,
const wxString& mimetype)
{
- AddFileWithMimeType(filename,
- (const void*) textdata.mb_str(), textdata.length(),
- mimetype);
+ const wxCharBuffer buf(textdata.To8BitData());
+
+ AddFileWithMimeType(filename, buf.data(), buf.length(), mimetype);
}
return;
wxMemoryOutputStream mems;
- if ( image.Ok() && image.SaveFile(mems, type) )
+ if ( image.IsOk() && image.SaveFile(mems, type) )
{
m_Hash[filename] = new wxMemoryFSFile
(