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

@@ -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