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