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:
@@ -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 *)
|
||||
|
||||
Reference in New Issue
Block a user