diff --git a/src/option_types.hh b/src/option_types.hh index 7b6dfe93..a564fbe1 100644 --- a/src/option_types.hh +++ b/src/option_types.hh @@ -86,8 +86,7 @@ template void option_from_string(StringView str, UnorderedMap& opt) { opt.clear(); - std::vector elems = split(str, list_separator, '\\'); - for (auto& elem: elems) + for (auto& elem : split(str, list_separator, '\\')) { std::vector pair_str = split(elem, '=', '\\'); if (pair_str.size() != 2)