Permalink
Browse files

don't LoadFile in the constructor of CXBMCTinyXML. TiXmlDocument does…

…n't and nor should we.
  • Loading branch information...
Jonathan Marshall
Jonathan Marshall committed Aug 20, 2012
1 parent 2b7a3a2 commit be982babfc978cbd173f2b9c0d547b628a7dd8d6
Showing with 2 additions and 4 deletions.
  1. +2 −4 xbmc/utils/XBMCTinyXML.cpp
@@ -30,15 +30,13 @@ CXBMCTinyXML::CXBMCTinyXML()
}
CXBMCTinyXML::CXBMCTinyXML(const char *documentName)
-: TiXmlDocument()
+: TiXmlDocument(documentName)
{
- LoadFile(documentName);
}
CXBMCTinyXML::CXBMCTinyXML(const CStdString &documentName)
-: TiXmlDocument()
+: TiXmlDocument(documentName)
{
- LoadFile(documentName);
}
bool CXBMCTinyXML::LoadFile(TiXmlEncoding encoding)

0 comments on commit be982ba

Please sign in to comment.