From e832b6895e00062b3729174ea13296bbd1113b7c Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Fri, 1 Mar 2019 14:14:40 -0500 Subject: [PATCH] Case insensitive comparison for file extensions in two places... ... consistent with handling of file extensions elsewhere --- src/DirManager.cpp | 4 ++-- src/PluginManager.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DirManager.cpp b/src/DirManager.cpp index b3d865a1a..5c31f92ae 100644 --- a/src/DirManager.cpp +++ b/src/DirManager.cpp @@ -2124,8 +2124,8 @@ void DirManager::FindOrphanBlockFiles( if ((mBlockFileHash.find(basename) == mBlockFileHash.end()) && // is orphan // Consider only Audacity data files. // Specifically, ignore JPG and OGG ("Save Compressed Copy"). - (ext.IsSameAs(wxT("au")) || - ext.IsSameAs(wxT("auf")))) + (ext.IsSameAs(wxT("au"), false) || + ext.IsSameAs(wxT("auf"), false))) { if (!clipboardDM) { TrackList *clipTracks = AudacityProject::GetClipboardTracks(); diff --git a/src/PluginManager.cpp b/src/PluginManager.cpp index da001fafb..a3aa4a6c0 100644 --- a/src/PluginManager.cpp +++ b/src/PluginManager.cpp @@ -1791,8 +1791,8 @@ bool PluginManager::DropFile(const wxString &fileName) const auto &ff = module->InstallPath(); auto extensions = module->GetFileExtensions(); - if (!ff.empty() && - make_iterator_range(extensions).contains(src.GetExt())) { + if ( !ff.empty() && + extensions.Index(src.GetExt(), false) != wxNOT_FOUND ) { wxString errMsg; // Do dry-run test of the file format unsigned nPlugIns =