1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-08 04:32:00 +01:00

Remove some naked new amd delete in: overrides of CommandType::BuildSignature

This commit is contained in:
Paul Licameli
2016-08-07 14:51:39 -04:00
parent 473e955da3
commit c3e53ea26e
18 changed files with 79 additions and 84 deletions

View File

@@ -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)