minor style tweak

This commit is contained in:
Maxime Coste 2015-01-01 12:09:30 +00:00
parent c698032ace
commit 15542c3357

View File

@ -86,8 +86,7 @@ template<typename Key, typename Value>
void option_from_string(StringView str, UnorderedMap<Key, Value>& opt)
{
opt.clear();
std::vector<String> elems = split(str, list_separator, '\\');
for (auto& elem: elems)
for (auto& elem : split(str, list_separator, '\\'))
{
std::vector<String> pair_str = split(elem, '=', '\\');
if (pair_str.size() != 2)