mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02: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:
@@ -42,7 +42,7 @@ public:
|
||||
void Terminate() override;
|
||||
|
||||
FileExtensions GetFileExtensions() override { return {}; }
|
||||
wxString InstallPath() override { return {}; }
|
||||
FilePath InstallPath() override { return {}; }
|
||||
|
||||
bool AutoRegisterPlugins(PluginManagerInterface & pm) override;
|
||||
PluginPaths FindPluginPaths(PluginManagerInterface & pm) override;
|
||||
|
@@ -43,7 +43,7 @@ void OpenProjectCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
|
||||
bool OpenProjectCommand::Apply(const CommandContext & context){
|
||||
|
||||
wxString oldFileName = context.GetProject()->GetFileName();
|
||||
auto oldFileName = context.GetProject()->GetFileName();
|
||||
if(mFileName.empty())
|
||||
{
|
||||
auto project = context.GetProject();
|
||||
@@ -53,7 +53,7 @@ bool OpenProjectCommand::Apply(const CommandContext & context){
|
||||
{
|
||||
context.GetProject()->OpenFile(mFileName, mbAddToHistory);
|
||||
}
|
||||
const wxString &newFileName = context.GetProject()->GetFileName();
|
||||
const auto &newFileName = context.GetProject()->GetFileName();
|
||||
|
||||
// Because Open does not return a success or failure, we have to guess
|
||||
// at this point, based on whether the project file name has
|
||||
|
Reference in New Issue
Block a user