const_cast: convert some C-style casts and remove some redundant ones

Change-Id: I84b3843b32bbec6dfe5a9c627927b04122d50abd
This commit is contained in:
Stephan Bergmann
2015-03-26 15:31:04 +01:00
parent 98ce4ac401
commit b549220522

View File

@@ -178,7 +178,7 @@ void xml_parser::parse(const char* XmlData, size_t Length, bool IsFinal)
XML_Parse(xml_parser_, XmlData, static_cast<int>(Length), IsFinal)) XML_Parse(xml_parser_, XmlData, static_cast<int>(Length), IsFinal))
{ {
throw xml_parser_exception( throw xml_parser_exception(
(char*)XML_ErrorString(XML_GetErrorCode(xml_parser_)), XML_ErrorString(XML_GetErrorCode(xml_parser_)),
(int)XML_GetErrorCode(xml_parser_), (int)XML_GetErrorCode(xml_parser_),
XML_GetCurrentLineNumber(xml_parser_), XML_GetCurrentLineNumber(xml_parser_),
XML_GetCurrentColumnNumber(xml_parser_), XML_GetCurrentColumnNumber(xml_parser_),