mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 17:11:20 +01:00
Avoid extra indirection in FormatList
This commit is contained in:
@@ -241,10 +241,9 @@ void BatchProcessDialog::OnApplyToFiles(wxCommandEvent & WXUNUSED(event))
|
||||
wxString filter;
|
||||
wxString all;
|
||||
|
||||
l.DeleteContents(true);
|
||||
Importer::Get().GetSupportedImportFormats(&l);
|
||||
for (FormatList::compatibility_iterator n = l.GetFirst(); n; n = n->GetNext()) {
|
||||
Format *f = n->GetData();
|
||||
for (const auto &format : l) {
|
||||
const Format *f = &format;
|
||||
|
||||
wxString newfilter = f->formatName + wxT("|");
|
||||
for (size_t i = 0; i < f->formatExtensions.size(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user