mirror of https://github.com/AxioDL/tinyxml2.git
minor formatting changes
This commit is contained in:
parent
ba7d9df976
commit
7e67bc89de
10
tinyxml2.cpp
10
tinyxml2.cpp
|
@ -353,7 +353,7 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
|
||||||
unsigned long ucs = 0;
|
unsigned long ucs = 0;
|
||||||
ptrdiff_t delta = 0;
|
ptrdiff_t delta = 0;
|
||||||
unsigned mult = 1;
|
unsigned mult = 1;
|
||||||
const char semicolon = ';';
|
static const char SEMICOLON = ';';
|
||||||
|
|
||||||
if ( *(p+2) == 'x' ) {
|
if ( *(p+2) == 'x' ) {
|
||||||
// Hexadecimal.
|
// Hexadecimal.
|
||||||
|
@ -362,12 +362,12 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* q = p+3;
|
const char* q = p+3;
|
||||||
q = strchr( q, semicolon );
|
q = strchr( q, SEMICOLON );
|
||||||
|
|
||||||
if ( !q ) {
|
if ( !q ) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
TIXMLASSERT( *q == semicolon );
|
TIXMLASSERT( *q == SEMICOLON );
|
||||||
|
|
||||||
delta = q-p;
|
delta = q-p;
|
||||||
--q;
|
--q;
|
||||||
|
@ -396,12 +396,12 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* q = p+2;
|
const char* q = p+2;
|
||||||
q = strchr( q, semicolon );
|
q = strchr( q, SEMICOLON );
|
||||||
|
|
||||||
if ( !q ) {
|
if ( !q ) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
TIXMLASSERT( *q == semicolon );
|
TIXMLASSERT( *q == SEMICOLON );
|
||||||
|
|
||||||
delta = q-p;
|
delta = q-p;
|
||||||
--q;
|
--q;
|
||||||
|
|
Loading…
Reference in New Issue