small XMLFile cleanup
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.h

Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp
--- branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp	2005-01-05 15:16:10 UTC (rev 12820)
+++ branches/xmlbuildsystem/reactos/tools/rbuild/XML.cpp	2005-01-05 17:59:08 UTC (rev 12821)
@@ -191,11 +191,6 @@
 void
 XMLFile::close()
 {
-	while ( _f.size() )
-	{
-		fclose ( _f.back() );
-		_f.pop_back();
-	}
 	_buf.resize(0);
 	_p = _end = NULL;
 }
@@ -210,9 +205,9 @@
 	unsigned long len = (unsigned long)filelen(f);
 	_buf.resize ( len );
 	fread ( &_buf[0], 1, len, f );
+	fclose ( f );
 	_p = _buf.c_str();
 	_end = _p + len;
-	_f.push_back ( f );
 	next_token();
 	return true;
 }

Modified: branches/xmlbuildsystem/reactos/tools/rbuild/XML.h
--- branches/xmlbuildsystem/reactos/tools/rbuild/XML.h	2005-01-05 15:16:10 UTC (rev 12820)
+++ branches/xmlbuildsystem/reactos/tools/rbuild/XML.h	2005-01-05 17:59:08 UTC (rev 12821)
@@ -36,7 +36,6 @@
 	bool get_token(std::string& token);
 
 private:
-	std::vector<FILE*> _f;
 	std::string _buf;
 
 	const char *_p, *_end;