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

Remove some naked new amd delete in: commands

This commit is contained in:
Paul Licameli
2016-08-07 14:56:54 -04:00
parent c3e53ea26e
commit 57afa1399e
9 changed files with 58 additions and 70 deletions

View File

@@ -16,20 +16,21 @@
*//*******************************************************************/
#include <wx/event.h>
#include "../Audacity.h"
#include "CommandHandler.h"
#include <wx/event.h>
#include "../Project.h"
#include "Command.h"
#include "AppCommandEvent.h"
#include "ScriptCommandRelay.h"
CommandHandler::CommandHandler(AudacityApp &app)
: mCurrentContext(new CommandExecutionContext(&app, GetActiveProject()))
: mCurrentContext(std::make_unique<CommandExecutionContext>
(&app, GetActiveProject()))
{ }
CommandHandler::~CommandHandler()
{
delete mCurrentContext;
}
void CommandHandler::SetProject(AudacityProject *)