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:
@@ -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>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user