From e28be7530cd40f8fd2e78934f8cc463f6e158102 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 9 Jan 2015 14:59:30 +0300 Subject: [PATCH] Use explicit const_cast --- tinyxml2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 14cc91a..b8555c3 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1927,7 +1927,7 @@ void XMLDocument::Parse() TIXMLASSERT( _charBuffer ); char* p = _charBuffer; p = XMLUtil::SkipWhiteSpace( p ); - p = (char*) XMLUtil::ReadBOM( p, &_writeBOM ); + p = const_cast( XMLUtil::ReadBOM( p, &_writeBOM ) ); if ( !*p ) { SetError( XML_ERROR_EMPTY_DOCUMENT, 0, 0 ); return;