mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 05:01:57 +01:00
Manage Commands and CommandOutputTarget objects with smart pointers
This commit is contained in:
@@ -33,9 +33,9 @@ void CompareAudioCommandType::BuildSignature(CommandSignature &signature)
|
||||
signature.AddParameter(wxT("Threshold"), 0.0, thresholdValidator);
|
||||
}
|
||||
|
||||
Command *CompareAudioCommandType::Create(CommandOutputTarget *target)
|
||||
CommandHolder CompareAudioCommandType::Create(std::unique_ptr<CommandOutputTarget> &&target)
|
||||
{
|
||||
return new CompareAudioCommand(*this, target);
|
||||
return std::make_shared<CompareAudioCommand>(*this, std::move(target));
|
||||
}
|
||||
|
||||
// Update member variables with project selection data (and validate)
|
||||
|
||||
Reference in New Issue
Block a user