Merge pull request #263 from Dmitry-Me/useProperConstCast

Use explicit const_cast
This commit is contained in:
Lee Thomason 2015-01-09 14:29:05 -08:00
commit e53740ec6a
1 changed files with 1 additions and 1 deletions

View File

@ -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<char*>( XMLUtil::ReadBOM( p, &_writeBOM ) );
if ( !*p ) {
SetError( XML_ERROR_EMPTY_DOCUMENT, 0, 0 );
return;