Merge branch 'stl' of git://github.com/neheb/MPD

This commit is contained in:
Max Kellermann
2020-04-08 23:03:44 +02:00
7 changed files with 12 additions and 36 deletions

View File

@@ -154,11 +154,7 @@ TagBuilder::CommitNew() noexcept
bool
TagBuilder::HasType(TagType type) const noexcept
{
for (auto i : items)
if (i->type == type)
return true;
return false;
return std::any_of(items.begin(), items.end(), [type](const auto &i) { return i->type == type; });
}
void