diff options
Diffstat (limited to 'src/TagSave.cxx')
-rw-r--r-- | src/TagSave.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/TagSave.cxx b/src/TagSave.cxx index 3a291e115..7666287af 100644 --- a/src/TagSave.cxx +++ b/src/TagSave.cxx @@ -32,8 +32,7 @@ tag_save(FILE *file, const Tag &tag) if (tag.has_playlist) fprintf(file, "Playlist: yes\n"); - for (unsigned i = 0; i < tag.num_items; i++) + for (const auto &i : tag) fprintf(file, "%s: %s\n", - tag_item_names[tag.items[i]->type], - tag.items[i]->value); + tag_item_names[i.type], i.value); } |