- 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
+ );