song/TagSongFilter: eliminate the std::fill_n() call
This commit is contained in:
parent
8d1f30e55b
commit
fde9a470dd
@ -44,8 +44,7 @@ TagSongFilter::Match(const TagItem &item) const noexcept
|
||||
bool
|
||||
TagSongFilter::Match(const Tag &tag) const noexcept
|
||||
{
|
||||
bool visited_types[TAG_NUM_OF_ITEM_TYPES];
|
||||
std::fill_n(visited_types, size_t(TAG_NUM_OF_ITEM_TYPES), false);
|
||||
bool visited_types[TAG_NUM_OF_ITEM_TYPES]{};
|
||||
|
||||
for (const auto &i : tag) {
|
||||
visited_types[i.type] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user