mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:11:51 +00:00
small XMLFile cleanup
svn path=/branches/xmlbuildsystem/; revision=12821
This commit is contained in:
parent
039d7779de
commit
5793157884
2 changed files with 1 additions and 7 deletions
|
@ -191,11 +191,6 @@ XMLFile::XMLFile()
|
|||
void
|
||||
XMLFile::close()
|
||||
{
|
||||
while ( _f.size() )
|
||||
{
|
||||
fclose ( _f.back() );
|
||||
_f.pop_back();
|
||||
}
|
||||
_buf.resize(0);
|
||||
_p = _end = NULL;
|
||||
}
|
||||
|
@ -210,9 +205,9 @@ XMLFile::open(const string& filename)
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,6 @@ public:
|
|||
bool get_token(std::string& token);
|
||||
|
||||
private:
|
||||
std::vector<FILE*> _f;
|
||||
std::string _buf;
|
||||
|
||||
const char *_p, *_end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue