compilation fix for STL/!UNICODE case (closes #10846)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,15 +186,13 @@ void wxMemoryFSHandlerBase::AddFileWithMimeType(const wxString& filename,
|
|||||||
const wxString& textdata,
|
const wxString& textdata,
|
||||||
const wxString& mimetype)
|
const wxString& mimetype)
|
||||||
{
|
{
|
||||||
#if wxUSE_UNICODE
|
AddFileWithMimeType
|
||||||
const wxScopedCharBuffer data(textdata.To8BitData());
|
(
|
||||||
#else
|
filename,
|
||||||
const wxString& data = textdata;
|
static_cast<const char *>(textdata.To8BitData()),
|
||||||
#endif
|
data.length(),
|
||||||
|
mimetype
|
||||||
AddFileWithMimeType(filename,
|
);
|
||||||
static_cast<const char *>(data), data.length(),
|
|
||||||
mimetype);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user