From 7e67bc89de08d331dee49ee4056adba62b57588c Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Mon, 12 Jan 2015 14:05:12 -0800 Subject: [PATCH] minor formatting changes --- tinyxml2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 99cca41..b236658 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -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;