mirror of https://github.com/AxioDL/tinyxml2.git
Use explicit const_cast
This commit is contained in:
parent
3cebdc4fac
commit
e28be7530c
|
@ -1927,7 +1927,7 @@ void XMLDocument::Parse()
|
||||||
TIXMLASSERT( _charBuffer );
|
TIXMLASSERT( _charBuffer );
|
||||||
char* p = _charBuffer;
|
char* p = _charBuffer;
|
||||||
p = XMLUtil::SkipWhiteSpace( p );
|
p = XMLUtil::SkipWhiteSpace( p );
|
||||||
p = (char*) XMLUtil::ReadBOM( p, &_writeBOM );
|
p = const_cast<char*>( XMLUtil::ReadBOM( p, &_writeBOM ) );
|
||||||
if ( !*p ) {
|
if ( !*p ) {
|
||||||
SetError( XML_ERROR_EMPTY_DOCUMENT, 0, 0 );
|
SetError( XML_ERROR_EMPTY_DOCUMENT, 0, 0 );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue