mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-08 12:42:03 +01:00
Don't use an internal iterator in Tags
This commit is contained in:
@@ -388,8 +388,10 @@ bool ExportFLAC::GetMetadata(AudacityProject *project, Tags *tags)
|
||||
|
||||
mMetadata = ::FLAC__metadata_object_new(FLAC__METADATA_TYPE_VORBIS_COMMENT);
|
||||
|
||||
wxString n, v;
|
||||
for (bool cont = tags->GetFirst(n, v); cont; cont = tags->GetNext(n, v)) {
|
||||
wxString n;
|
||||
for (const auto &pair : tags->GetRange()) {
|
||||
n = pair.first;
|
||||
const auto &v = pair.second;
|
||||
if (n == TAG_YEAR) {
|
||||
n = wxT("DATE");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user