1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 14:13:32 +02:00

Reviewed uses of type alias FileExtension, it belongs in more places

This commit is contained in:
Paul Licameli
2019-12-27 16:14:25 -05:00
parent 3f88df06ec
commit d6d4ee3c29
11 changed files with 23 additions and 24 deletions

View File

@@ -350,7 +350,7 @@ bool Importer::Import(const FilePath &fName,
AudacityProject *pProj = GetActiveProject();
auto cleanup = valueRestorer( pProj->mbBusyImporting, true );
wxString extension = fName.AfterLast(wxT('.'));
const FileExtension extension{ fName.AfterLast(wxT('.')) };
// Always refuse to import MIDI, even though the FFmpeg plugin pretends to know how (but makes very bad renderings)
#ifdef USE_MIDI

View File

@@ -345,7 +345,7 @@ GStreamerImportPlugin::GetSupportedExtensions()
// We refresh the extensions each time this is called in case the
// user had installed additional gstreamer plugins while Audacity
// was active.
mExtensions.Empty();
mExtensions.clear();
// Gather extensions from all factories that support audio
{

View File

@@ -173,7 +173,7 @@ public:
return mFormatName;
}
bool SupportsExtension(const wxString &extension)
bool SupportsExtension(const FileExtension &extension)
{
return mExtensions.Index(extension, false) != wxNOT_FOUND;
}