util/AllocatedString: fix string_view specialization in TotalSize()

This commit is contained in:
Max Kellermann 2023-10-08 19:50:57 +02:00
parent 3a86956257
commit db5f270f42
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ private:
static constexpr std::size_t TotalSize(std::initializer_list<string_view> src) noexcept {
std::size_t size = 0;
for (std::string_view i : src)
for (const string_view i : src)
size += i.size();
return size;
}