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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user