1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-08 07:25:39 +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

@@ -279,7 +279,6 @@ class ExportCL final : public ExportPlugin
public:
ExportCL();
void Destroy();
// Required
wxWindow *OptionsCreate(wxWindow *parent, int format);
@@ -306,11 +305,6 @@ ExportCL::ExportCL()
SetDescription(_("(external program)"),0);
}
void ExportCL::Destroy()
{
delete this;
}
int ExportCL::Export(AudacityProject *project,
int channels,
const wxString &fName,
@@ -538,8 +532,8 @@ wxWindow *ExportCL::OptionsCreate(wxWindow *parent, int format)
return safenew ExportCLOptions(parent, format);
}
ExportPlugin *New_ExportCL()
movable_ptr<ExportPlugin> New_ExportCL()
{
return new ExportCL();
return make_movable<ExportCL>();
}