From 6de57b36c7d591757f63811b7994c9d4f263543c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 14 Mar 2019 20:31:22 +0100 Subject: [PATCH] song/TagSongFilter: eliminate the std::fill_n() call --- src/song/TagSongFilter.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/song/TagSongFilter.cxx b/src/song/TagSongFilter.cxx index 547172a4c..d7169740c 100644 --- a/src/song/TagSongFilter.cxx +++ b/src/song/TagSongFilter.cxx @@ -44,8 +44,7 @@ TagSongFilter::MatchNN(const TagItem &item) const noexcept bool TagSongFilter::MatchNN(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;