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:
@@ -178,7 +178,6 @@ class ExportFLAC final : public ExportPlugin
|
||||
public:
|
||||
|
||||
ExportFLAC();
|
||||
void Destroy();
|
||||
|
||||
// Required
|
||||
|
||||
@@ -213,11 +212,6 @@ ExportFLAC::ExportFLAC()
|
||||
SetDescription(_("FLAC Files"),0);
|
||||
}
|
||||
|
||||
void ExportFLAC::Destroy()
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
|
||||
int ExportFLAC::Export(AudacityProject *project,
|
||||
int numChannels,
|
||||
const wxString &fName,
|
||||
@@ -403,9 +397,9 @@ bool ExportFLAC::GetMetadata(AudacityProject *project, const Tags *tags)
|
||||
return true;
|
||||
}
|
||||
|
||||
ExportPlugin *New_ExportFLAC()
|
||||
movable_ptr<ExportPlugin> New_ExportFLAC()
|
||||
{
|
||||
return new ExportFLAC();
|
||||
return make_movable<ExportFLAC>();
|
||||
}
|
||||
|
||||
#endif // USE_LIBFLAC
|
||||
|
||||
Reference in New Issue
Block a user