Use explicit const_cast

This commit is contained in:
Dmitry-Me 2015-01-09 14:59:30 +03:00
parent 3cebdc4fac
commit e28be7530c
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;