]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xtixml.cpp
require libsm-dev, it's needed for KDE/GNOME detection
[wxWidgets.git] / src / common / xtixml.cpp
index 7531d3df03c8301af31e21ca63ce06d5796d7eac..ed5039461b1a8d4f2e01f0647db27c080d7c4bfd 100644 (file)
 
 #if wxUSE_EXTENDED_RTTI
 
+#include "wx/xtixml.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
     #include "wx/hash.h"
+    #include "wx/event.h"
 #endif
 
 #include "wx/xml/xml.h"
 #include "wx/tokenzr.h"
 #include "wx/txtstrm.h"
-#include "wx/event.h"
 
 #include "wx/xtistrm.h"
-#include "wx/xtixml.h"
 
 #include "wx/beforestd.h"
 #include <map>
@@ -305,8 +306,8 @@ int wxXmlReader::ReadComponent(wxXmlNode *node, wxDepersister *callbacks)
     {
         wxString name ;
         children->GetPropVal( wxT("name") , &name ) ;
-        propertyNames.push_back( name.c_str() ) ;
-        propertyNodes[name.c_str()] = children->GetChildren() ;
+        propertyNames.push_back( (const wxChar*)name.c_str() ) ;
+        propertyNodes[(const wxChar*)name.c_str()] = children->GetChildren() ;
         children = children->GetNext() ;
     }