1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 14:35:32 +01:00

Manage the members of CommandOutputTarget with smart pointers

This commit is contained in:
Paul Licameli
2016-03-31 13:12:04 -04:00
parent e8ad90b3c9
commit 3481e678ea
6 changed files with 21 additions and 37 deletions

View File

@@ -81,9 +81,9 @@ void CommandBuilder::BuildCommand(const wxString &cmdName,
{
// Stage 1: create a Command object of the right type
CommandMessageTarget *scriptOutput = ScriptCommandRelay::GetResponseTarget();
auto scriptOutput = ScriptCommandRelay::GetResponseTarget();
auto output
= std::make_unique<CommandOutputTarget>(new NullProgressTarget(),
= std::make_unique<CommandOutputTarget>(std::make_unique<NullProgressTarget>(),
scriptOutput,
scriptOutput);