1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-13 08:06:32 +01:00

Avoid some wxString copies

This commit is contained in:
Paul Licameli
2016-04-17 09:38:08 -04:00
parent 3e6f0bed78
commit 185d5e132d
4 changed files with 6 additions and 6 deletions

View File

@@ -48,9 +48,9 @@ bool OpenProjectCommand::Apply(CommandExecutionContext context)
}
else
{
context.GetProject()->OpenFile(fileName,addToHistory);
context.GetProject()->OpenFile(fileName, addToHistory);
}
wxString newFileName = context.GetProject()->GetFileName();
const wxString &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