Commit 6de57b36 authored by Max Kellermann's avatar Max Kellermann

song/TagSongFilter: eliminate the std::fill_n() call

parent 1a0865da
...@@ -44,8 +44,7 @@ TagSongFilter::MatchNN(const TagItem &item) const noexcept ...@@ -44,8 +44,7 @@ TagSongFilter::MatchNN(const TagItem &item) const noexcept
bool bool
TagSongFilter::MatchNN(const Tag &tag) const noexcept TagSongFilter::MatchNN(const Tag &tag) const noexcept
{ {
bool visited_types[TAG_NUM_OF_ITEM_TYPES]; bool visited_types[TAG_NUM_OF_ITEM_TYPES]{};
std::fill_n(visited_types, size_t(TAG_NUM_OF_ITEM_TYPES), false);
for (const auto &i : tag) { for (const auto &i : tag) {
visited_types[i.type] = true; visited_types[i.type] = 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