X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/088ab9849902bdd852a90c23342bf90558eeb37b..52069700e7f9c4cc1fc4379306e9f763c5b83073:/src/xml/xml.cpp diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index 80c76829fc..f55ad6f7a1 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -482,7 +482,8 @@ static int UnknownEncodingHnd(void * WXUNUSED(encodingHandlerData), // We must build conversion table for expat. The easiest way to do so // is to let wxCSConv convert as string containing all characters to // wide character representation: - wxCSConv conv(wxString(name, wxConvLibc)); + wxString str(name, wxConvLibc); + wxCSConv conv(str); char mbBuf[2]; wchar_t wcBuf[10]; size_t i; @@ -499,7 +500,7 @@ static int UnknownEncodingHnd(void * WXUNUSED(encodingHandlerData), } info->map[i+1] = (int)wcBuf[0]; } - + info->data = NULL; info->convert = NULL; info->release = NULL;