use auto for char-type

This commit is contained in:
Patrick Boettcher 2020-07-13 11:17:18 +02:00
parent b9d8e098cd
commit 5782bdcf9e

View File

@ -616,7 +616,7 @@ class string : public schema
std::size_t utf8_length(const std::string &s) const
{
size_t len = 0;
for (unsigned char c : s)
for (auto c : s)
if ((c & 0xc0) != 0x80)
len++;
return len;