diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx index 3e449e15b..dd095ede6 100644 --- a/src/util/AllocatedString.hxx +++ b/src/util/AllocatedString.hxx @@ -148,7 +148,7 @@ private: static constexpr std::size_t TotalSize(std::initializer_list src) noexcept { std::size_t size = 0; - for (std::string_view i : src) + for (const string_view i : src) size += i.size(); return size; }