Skip to content

Commit

Permalink
don't LoadFile in the constructor of CXBMCTinyXML. TiXmlDocument does…
Browse files Browse the repository at this point in the history
…n't and nor should we.
  • Loading branch information
Jonathan Marshall committed Aug 20, 2012
1 parent 2b7a3a2 commit be982ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions xbmc/utils/XBMCTinyXML.cpp
Expand Up @@ -30,15 +30,13 @@ CXBMCTinyXML::CXBMCTinyXML()
} }


CXBMCTinyXML::CXBMCTinyXML(const char *documentName) CXBMCTinyXML::CXBMCTinyXML(const char *documentName)
: TiXmlDocument() : TiXmlDocument(documentName)
{ {
LoadFile(documentName);
} }


CXBMCTinyXML::CXBMCTinyXML(const CStdString &documentName) CXBMCTinyXML::CXBMCTinyXML(const CStdString &documentName)
: TiXmlDocument() : TiXmlDocument(documentName)
{ {
LoadFile(documentName);
} }


bool CXBMCTinyXML::LoadFile(TiXmlEncoding encoding) bool CXBMCTinyXML::LoadFile(TiXmlEncoding encoding)
Expand Down

0 comments on commit be982ba

Please sign in to comment.