aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/Helpers.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/Helpers.cxx')
-rw-r--r--src/db/Helpers.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/db/Helpers.cxx b/src/db/Helpers.cxx
index b849e73e8..089b2b17d 100644
--- a/src/db/Helpers.cxx
+++ b/src/db/Helpers.cxx
@@ -43,9 +43,7 @@ StatsVisitTag(DatabaseStats &stats, StringSet &artists, StringSet &albums,
if (tag.time > 0)
stats.total_duration += tag.time;
- for (unsigned i = 0; i < tag.num_items; ++i) {
- const TagItem &item = *tag.items[i];
-
+ for (const auto &item : tag) {
switch (item.type) {
case TAG_ARTIST:
#if defined(__clang__) || GCC_CHECK_VERSION(4,8)