1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-07 12:12:23 +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

@@ -1581,7 +1581,6 @@ class ExportMP3 final : public ExportPlugin
public:
ExportMP3();
void Destroy();
bool CheckFileName(wxFileName & filename, int format);
// Required
@@ -1620,11 +1619,6 @@ ExportMP3::ExportMP3()
SetDescription(_("MP3 Files"),0);
}
void ExportMP3::Destroy()
{
delete this;
}
bool ExportMP3::CheckFileName(wxFileName & WXUNUSED(filename), int WXUNUSED(format))
{
#ifndef DISABLE_DYNAMIC_LOADING_LAME
@@ -2103,9 +2097,9 @@ void ExportMP3::AddFrame(struct id3_tag *tp, const wxString & n, const wxString
}
#endif
ExportPlugin *New_ExportMP3()
movable_ptr<ExportPlugin> New_ExportMP3()
{
return new ExportMP3();
return make_movable<ExportMP3>();
}
//----------------------------------------------------------------------------