From dbf2b7d24cb738f3614976f356b1ca6d6585dae0 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 3 May 2020 21:12:41 -0700 Subject: [PATCH] [clang-tidy] change function parameter to const Found with readability-non-const-parameter Signed-off-by: Rosen Penev --- src/pugixml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index f832ac9..9d92e41 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -4626,7 +4626,7 @@ PUGI__NS_BEGIN } #endif - template PUGI__FN PUGI__UNSIGNED_OVERFLOW char_t* integer_to_string(char_t* begin, char_t* end, U value, bool negative) + template PUGI__FN PUGI__UNSIGNED_OVERFLOW char_t* integer_to_string(const char_t* begin, char_t* end, U value, bool negative) { char_t* result = end - 1; U rest = negative ? 0 - value : value; @@ -8262,7 +8262,7 @@ PUGI__NS_BEGIN return (value != 0 && !is_nan(value)); } - PUGI__FN void truncate_zeros(char* begin, char* end) + PUGI__FN void truncate_zeros(const char* begin, char* end) { while (begin != end && end[-1] == '0') end--;