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

@@ -128,7 +128,6 @@ class ExportOGG final : public ExportPlugin
public:
ExportOGG();
void Destroy();
// Required
wxWindow *OptionsCreate(wxWindow *parent, int format) override;
@@ -159,11 +158,6 @@ ExportOGG::ExportOGG()
SetDescription(_("Ogg Vorbis Files"),0);
}
void ExportOGG::Destroy()
{
delete this;
}
int ExportOGG::Export(AudacityProject *project,
int numChannels,
const wxString &fName,
@@ -362,9 +356,9 @@ bool ExportOGG::FillComment(AudacityProject *project, vorbis_comment *comment, c
return true;
}
ExportPlugin *New_ExportOGG()
movable_ptr<ExportPlugin> New_ExportOGG()
{
return new ExportOGG();
return make_movable<ExportOGG>();
}
#endif // USE_LIBVORBIS