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]
This commit is contained in:
parent
3fc859c42d
commit
7c62887df7
@ -54,14 +54,14 @@ tag_ape_import_item(unsigned long flags,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (handler.WantPair())
|
if (handler.WantPair())
|
||||||
for (const auto &i : IterableSplitString(value, '\0'))
|
for (const auto i : IterableSplitString(value, '\0'))
|
||||||
handler.OnPair(key, i);
|
handler.OnPair(key, i);
|
||||||
|
|
||||||
TagType type = tag_ape_name_parse(key);
|
TagType type = tag_ape_name_parse(key);
|
||||||
if (type == TAG_NUM_OF_ITEM_TYPES)
|
if (type == TAG_NUM_OF_ITEM_TYPES)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (const auto &i : IterableSplitString(value, '\0'))
|
for (const auto i : IterableSplitString(value, '\0'))
|
||||||
handler.OnTag(type, i);
|
handler.OnTag(type, i);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user