mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 06:22:58 +02:00
Manage Commands and CommandOutputTarget objects with smart pointers
This commit is contained in:
@@ -49,9 +49,9 @@ void SelectCommandType::BuildSignature(CommandSignature &signature)
|
||||
signature.AddParameter(wxT("TrackName"), 0, trackNameValidator);
|
||||
}
|
||||
|
||||
Command *SelectCommandType::Create(CommandOutputTarget *target)
|
||||
CommandHolder SelectCommandType::Create(std::unique_ptr<CommandOutputTarget> &&target)
|
||||
{
|
||||
return new SelectCommand(*this, target);
|
||||
return std::make_shared<SelectCommand>(*this, std::move(target));
|
||||
}
|
||||
|
||||
bool SelectCommand::Apply(CommandExecutionContext context)
|
||||
|
Reference in New Issue
Block a user