Skip to content
Browse files

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

…n't and nor should we.
  • Loading branch information...
1 parent 2b7a3a2 commit be982babfc978cbd173f2b9c0d547b628a7dd8d6 Jonathan Marshall committed
Showing with 2 additions and 4 deletions.
  1. +2 −4 xbmc/utils/XBMCTinyXML.cpp
View
6 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.
Something went wrong with that request. Please try again.