1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

Use type aliases FilePath, FilePaths...

... for wxString and wxArrayStringEx, holding file paths (absolute or relative,
directory or plain file); to be replaced later with different types

(not yet using std::vector, becase of some uses of wxArrayString::Index with
two arguments)
This commit is contained in:
Paul Licameli
2019-03-07 14:50:22 -05:00
parent 485b6bb425
commit a30000cf74
80 changed files with 371 additions and 342 deletions

View File

@@ -368,7 +368,7 @@ FileExtensions VSTEffectsModule::GetFileExtensions()
return {{ _T("vst") }};
}
wxString VSTEffectsModule::InstallPath()
FilePath VSTEffectsModule::InstallPath()
{
// Not yet ready for VST drag-and-drop...
// return FileNames::PlugInDir();
@@ -384,8 +384,8 @@ bool VSTEffectsModule::AutoRegisterPlugins(PluginManagerInterface & WXUNUSED(pm)
PluginPaths VSTEffectsModule::FindPluginPaths(PluginManagerInterface & pm)
{
wxArrayString pathList;
wxArrayString files;
FilePaths pathList;
FilePaths files;
// Check for the VST_PATH environment variable
wxString vstpath = wxString::FromUTF8(getenv("VST_PATH"));
@@ -499,7 +499,7 @@ unsigned VSTEffectsModule::DiscoverPluginsAtPath(
unsigned nFound = 0;
errMsg.clear();
// TODO: Fix this for external usage
const wxString &cmdpath = PlatformCompatibility::GetExecutablePath();
const auto &cmdpath = PlatformCompatibility::GetExecutablePath();
wxString effectIDs = wxT("0;");
wxStringTokenizer effectTzr(effectIDs, wxT(";"));