Browse files

fix build on win32 and eliminate warning regarding return value

  • Loading branch information...
1 parent de90b32 commit 33916636b0981bbbebd4687f8dd68aa9ee9daf33 Jonathan Marshall committed with May 3, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 xbmc/utils/XBMCTinyXML.cpp
View
8 xbmc/utils/XBMCTinyXML.cpp
@@ -25,18 +25,18 @@
#define BUFFER_SIZE 4096
CXBMCTinyXML::CXBMCTinyXML()
-: TiXmlDocument::TiXmlDocument()
+: TiXmlDocument()
{
}
CXBMCTinyXML::CXBMCTinyXML(const char *documentName)
-: TiXmlDocument::TiXmlDocument()
+: TiXmlDocument()
{
LoadFile(documentName);
}
CXBMCTinyXML::CXBMCTinyXML(const CStdString &documentName)
-: TiXmlDocument::TiXmlDocument()
+: TiXmlDocument()
{
LoadFile(documentName);
}
@@ -97,7 +97,7 @@ bool CXBMCTinyXML::LoadFile(FILE *f, TiXmlEncoding encoding)
data.reserve(BUFFER_SIZE * (++count));
data.append(buf);
}
- return Parse(data, NULL, encoding);
+ return Parse(data, NULL, encoding) != NULL;
}
bool CXBMCTinyXML::SaveFile(const char *_filename) const

0 comments on commit 3391663

Please sign in to comment.