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