Fix clang-tidy warning

This commit is contained in:
Dennis Luxen 2024-05-31 18:10:55 +02:00 committed by GitHub
parent 52cca73931
commit 45ee374347
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,11 +16,11 @@ namespace osrm::util
inline static constexpr std::array<uint8_t, 256> json_quotable_character = []() constexpr
{
std::array<uint8_t, 256> result{};
for (size_t i = 0; i < 32; i++)
for (auto i = 0; i < 32; i++)
{
result[i] = 1;
}
for (size_t i : {'"', '\\'})
for (auto i : {'"', '\\'})
{
result[i] = 1;
}