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