diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_translate_song.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx index bcd3e8646..374fd34a2 100644 --- a/test/test_translate_song.cxx +++ b/test/test_translate_song.cxx @@ -160,8 +160,7 @@ ToString(const Tag &tag) std::string result = buffer; - for (unsigned i = 0, n = tag.num_items; i != n; ++i) { - const TagItem &item = *tag.items[i]; + for (const auto &item : tag) { result.push_back('|'); result.append(tag_item_names[item.type]); result.push_back('='); |