1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-08 07:25:39 +01:00

Don't use an internal iterator in Tags

This commit is contained in:
Paul Licameli
2016-02-11 12:53:16 -05:00
parent a1c7b396b3
commit ffe9989f7c
7 changed files with 39 additions and 45 deletions

View File

@@ -349,8 +349,10 @@ bool ExportOGG::FillComment(AudacityProject *project, vorbis_comment *comment, T
vorbis_comment_init(comment);
wxString n, v;
for (bool cont = metadata->GetFirst(n, v); cont; cont = metadata->GetNext(n, v)) {
wxString n;
for (const auto &pair : metadata->GetRange()) {
n = pair.first;
const auto &v = pair.second;
if (n == TAG_YEAR) {
n = wxT("DATE");
}