1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Some replacements of wxArrayString with auto

This commit is contained in:
Paul Licameli
2019-02-12 14:00:23 -05:00
parent e46990f709
commit da33daf197
16 changed files with 25 additions and 25 deletions

View File

@@ -178,7 +178,7 @@ wxString ExportPlugin::GetMask(int index)
// Build the mask
// wxString ext = GetExtension(index);
wxArrayString exts = GetExtensions(index);
auto exts = GetExtensions(index);
for (size_t i = 0; i < exts.size(); i++) {
mask += wxT("*.") + exts[i] + wxT(";");
}
@@ -202,7 +202,7 @@ bool ExportPlugin::IsExtension(const wxString & ext, int index)
for (int i = index; i < GetFormatCount(); i = GetFormatCount())
{
wxString defext = GetExtension(i);
wxArrayString defexts = GetExtensions(i);
auto defexts = GetExtensions(i);
int indofext = defexts.Index(ext, false);
if (defext == wxT("") || (indofext != wxNOT_FOUND))
isext = true;

View File

@@ -384,7 +384,7 @@ ExportPCM::ExportPCM()
SetFormat(wxT("LIBSNDFILE"), format);
SetCanMetaData(true, format);
SetDescription(_("Other uncompressed files"), format);
wxArrayString allext = sf_get_all_extensions();
auto allext = sf_get_all_extensions();
wxString wavext = sf_header_extension(SF_FORMAT_WAV); // get WAV ext.
#if defined(wxMSW)
// On Windows make sure WAV is at the beginning of the list of all possible