diff --git a/src/util/StringStrip.cxx b/src/util/StringStrip.cxx index 27b2b567f..9aaf7d49f 100644 --- a/src/util/StringStrip.cxx +++ b/src/util/StringStrip.cxx @@ -59,8 +59,8 @@ StripRight(const char *p, const char *end) noexcept return end; } -size_t -StripRight(const char *p, size_t length) noexcept +std::size_t +StripRight(const char *p, std::size_t length) noexcept { while (length > 0 && IsWhitespaceOrNull(p[length - 1])) --length; @@ -71,8 +71,8 @@ StripRight(const char *p, size_t length) noexcept void StripRight(char *p) noexcept { - size_t old_length = strlen(p); - size_t new_length = StripRight(p, old_length); + std::size_t old_length = strlen(p); + std::size_t new_length = StripRight(p, old_length); p[new_length] = 0; } diff --git a/src/util/StringStrip.hxx b/src/util/StringStrip.hxx index d09d09655..902075407 100644 --- a/src/util/StringStrip.hxx +++ b/src/util/StringStrip.hxx @@ -82,8 +82,8 @@ StripRight(char *p, char *end) noexcept * side. */ gcc_pure gcc_nonnull_all -size_t -StripRight(const char *p, size_t length) noexcept; +std::size_t +StripRight(const char *p, std::size_t length) noexcept; /** * Strip trailing whitespace by null-terminating the string.