Commit 7c62887d authored by Max Kellermann's avatar Max Kellermann

tag/ApeTag: don't take reference of IterableSplitString() elements

This doesn't work because IterableSplitString() returns its elements by value. Fixes clang warning: loop variable 'i' is always a copy because the range of type 'IterableSplitString' (aka 'BasicIterableSplitString<char>') does not return a reference [-Werror,-Wrange-loop-analysis]
parent 3fc859c4
......@@ -54,14 +54,14 @@ tag_ape_import_item(unsigned long flags,
return false;
if (handler.WantPair())
for (const auto &i : IterableSplitString(value, '\0'))
for (const auto i : IterableSplitString(value, '\0'))
handler.OnPair(key, i);
TagType type = tag_ape_name_parse(key);
if (type == TAG_NUM_OF_ITEM_TYPES)
return false;
for (const auto &i : IterableSplitString(value, '\0'))
for (const auto i : IterableSplitString(value, '\0'))
handler.OnTag(type, i);
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment