]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xml/xml.cpp
Avoid using invalid parameters for GpiSetAttrs.
[wxWidgets.git] / src / xml / xml.cpp
index 28b83e829b4afc33432ce7d17f0b2b756ef9d4b7..25ffc91ea9beb868186249494822ebb79cb81eaa 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/app.h"
 #endif
 
 #include "wx/wfstream.h"
@@ -32,7 +33,6 @@
 #include "expat.h" // from Expat
 
 // DLL options compatibility check:
-#include "wx/app.h"
 WX_CHECK_BUILD_OPTIONS("wxXML")
 
 
@@ -385,7 +385,7 @@ static wxString CharToString(wxMBConv *conv,
         const wxWCharBuffer wbuf(
             wxConvUTF8.cMB2WC(s, len == wxSTRING_MAXLEN ? wxNO_LEN : len, NULL));
 
-        return wxString(wbuf, conv);
+        return wxString(wbuf, *conv);
     }
     else // already in UTF-8, no conversion needed
     {