mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #263 from Dmitry-Me/useProperConstCast
Use explicit const_cast
This commit is contained in:
commit
e53740ec6a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue