]> git.mxchange.org Git - simgear.git/blobdiff - simgear/xml/easyxml.cxx
Reduce compiler.h to almost nothing (but it's worth keeping around I think, for
[simgear.git] / simgear / xml / easyxml.cxx
index cb6ee263eb27786684f079d1735d3674399c2091..0779d872b38e9120a52cdb13db5e5dd1887f5590 100644 (file)
@@ -11,8 +11,8 @@
 #include "easyxml.hxx"
 #include "xmlparse.h"
 
-#include STL_FSTREAM
-#include STL_IOSTREAM
+#include <fstream>
+#include <iostream>
 
 SG_USING_STD(ifstream);
 
@@ -258,6 +258,7 @@ readXML (istream &input, XMLVisitor &visitor, const string &path)
   }
 
   XML_ParserFree(parser);
+  visitor.endXML();
 }
 
 void
@@ -303,6 +304,7 @@ readXML (const char *buf, const int size, XMLVisitor &visitor)
   }
 
   XML_ParserFree(parser);
+  visitor.endXML();
 }
 
 // end of easyxml.cxx