From 15542c33572b4d7cb59c4b9d94b86f14c1015da1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 1 Jan 2015 12:09:30 +0000 Subject: [PATCH] minor style tweak --- src/option_types.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)