#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);
+ AddFileWithMimeType
+ (
+ filename,
+ static_cast<const char *>(textdata.To8BitData()),
+ wxStrlen(static_cast<const char *>(textdata.To8BitData())),
+ mimetype
+ );
}