mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +01:00
Remove some naked new amd delete in: overrides of CommandType::BuildSignature
This commit is contained in:
@@ -29,8 +29,8 @@ wxString CompareAudioCommandType::BuildName()
|
||||
|
||||
void CompareAudioCommandType::BuildSignature(CommandSignature &signature)
|
||||
{
|
||||
DoubleValidator *thresholdValidator = new DoubleValidator();
|
||||
signature.AddParameter(wxT("Threshold"), 0.0, thresholdValidator);
|
||||
auto thresholdValidator = make_movable<DoubleValidator>();
|
||||
signature.AddParameter(wxT("Threshold"), 0.0, std::move(thresholdValidator));
|
||||
}
|
||||
|
||||
CommandHolder CompareAudioCommandType::Create(std::unique_ptr<CommandOutputTarget> &&target)
|
||||
|
||||
Reference in New Issue
Block a user