From 2449582eafff7c8ce6348da47c8557b07554ea95 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 2 Sep 2016 16:53:32 +0300 Subject: [PATCH] Use const where const is enough --- tinyxml2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index d26b483..2a58773 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -237,7 +237,7 @@ void StrPair::CollapseWhitespace() _start = XMLUtil::SkipWhiteSpace( _start ); if ( *_start ) { - char* p = _start; // the read pointer + const char* p = _start; // the read pointer char* q = _start; // the write pointer while( *p ) { @@ -267,7 +267,7 @@ const char* StrPair::GetStr() _flags ^= NEEDS_FLUSH; if ( _flags ) { - char* p = _start; // the read pointer + const char* p = _start; // the read pointer char* q = _start; // the write pointer while( p < _end ) {