minor formatting changes

This commit is contained in:
Lee Thomason 2015-01-12 14:05:12 -08:00
parent ba7d9df976
commit 7e67bc89de
1 changed files with 5 additions and 5 deletions

View File

@ -353,7 +353,7 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
unsigned long ucs = 0;
ptrdiff_t delta = 0;
unsigned mult = 1;
const char semicolon = ';';
static const char SEMICOLON = ';';
if ( *(p+2) == 'x' ) {
// Hexadecimal.
@ -362,12 +362,12 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
}
const char* q = p+3;
q = strchr( q, semicolon );
q = strchr( q, SEMICOLON );
if ( !q ) {
return 0;
}
TIXMLASSERT( *q == semicolon );
TIXMLASSERT( *q == SEMICOLON );
delta = q-p;
--q;
@ -396,12 +396,12 @@ const char* XMLUtil::GetCharacterRef( const char* p, char* value, int* length )
}
const char* q = p+2;
q = strchr( q, semicolon );
q = strchr( q, SEMICOLON );
if ( !q ) {
return 0;
}
TIXMLASSERT( *q == semicolon );
TIXMLASSERT( *q == SEMICOLON );
delta = q-p;
--q;