1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-07 20:22:13 +01:00

ExportPlugins managed with smart pointers

This commit is contained in:
Paul Licameli
2016-03-31 00:46:22 -04:00
parent 1108c1376c
commit 456c8fb01e
18 changed files with 98 additions and 115 deletions

View File

@@ -308,7 +308,6 @@ class ExportPCM final : public ExportPlugin
public:
ExportPCM();
void Destroy();
// Required
@@ -378,11 +377,6 @@ ExportPCM::ExportPCM()
SetMaxChannels(255, format);
}
void ExportPCM::Destroy()
{
delete this;
}
/**
*
* @param subformat Control whether we are doing a "preset" export to a popular
@@ -915,7 +909,7 @@ bool ExportPCM::CheckFileName(wxFileName &filename, int format)
return ExportPlugin::CheckFileName(filename, format);
}
ExportPlugin *New_ExportPCM()
movable_ptr<ExportPlugin> New_ExportPCM()
{
return new ExportPCM();
return make_movable<ExportPCM>();
}