1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-08 07:25:39 +01:00

Manage Commands and CommandOutputTarget objects with smart pointers

This commit is contained in:
Paul Licameli
2016-03-31 07:40:05 -04:00
parent f4441d7476
commit e8ad90b3c9
42 changed files with 164 additions and 172 deletions

View File

@@ -41,9 +41,9 @@ void SetProjectInfoCommandType::BuildSignature(CommandSignature &signature)
signature.AddParameter(wxT(kSetOfTracksStr), wxT("x"), TracksSetValidator);
}
Command *SetProjectInfoCommandType::Create(CommandOutputTarget *target)
CommandHolder SetProjectInfoCommandType::Create(std::unique_ptr<CommandOutputTarget> &&target)
{
return new SetProjectInfoCommand(*this, target);
return std::make_shared<SetProjectInfoCommand>(*this, std::move(target));
}