mirror of https://github.com/AxioDL/tinyxml2.git
Use const where const is enough
This commit is contained in:
parent
4fe8c102da
commit
2449582eaf
|
@ -237,7 +237,7 @@ void StrPair::CollapseWhitespace()
|
||||||
_start = XMLUtil::SkipWhiteSpace( _start );
|
_start = XMLUtil::SkipWhiteSpace( _start );
|
||||||
|
|
||||||
if ( *_start ) {
|
if ( *_start ) {
|
||||||
char* p = _start; // the read pointer
|
const char* p = _start; // the read pointer
|
||||||
char* q = _start; // the write pointer
|
char* q = _start; // the write pointer
|
||||||
|
|
||||||
while( *p ) {
|
while( *p ) {
|
||||||
|
@ -267,7 +267,7 @@ const char* StrPair::GetStr()
|
||||||
_flags ^= NEEDS_FLUSH;
|
_flags ^= NEEDS_FLUSH;
|
||||||
|
|
||||||
if ( _flags ) {
|
if ( _flags ) {
|
||||||
char* p = _start; // the read pointer
|
const char* p = _start; // the read pointer
|
||||||
char* q = _start; // the write pointer
|
char* q = _start; // the write pointer
|
||||||
|
|
||||||
while( p < _end ) {
|
while( p < _end ) {
|
||||||
|
|
Loading…
Reference in New Issue