mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +01:00
ExportPlugins managed with smart pointers
This commit is contained in:
@@ -308,7 +308,6 @@ class ExportPCM final : public ExportPlugin
|
||||
public:
|
||||
|
||||
ExportPCM();
|
||||
void Destroy();
|
||||
|
||||
// Required
|
||||
|
||||
@@ -378,11 +377,6 @@ ExportPCM::ExportPCM()
|
||||
SetMaxChannels(255, format);
|
||||
}
|
||||
|
||||
void ExportPCM::Destroy()
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param subformat Control whether we are doing a "preset" export to a popular
|
||||
@@ -915,7 +909,7 @@ bool ExportPCM::CheckFileName(wxFileName &filename, int format)
|
||||
return ExportPlugin::CheckFileName(filename, format);
|
||||
}
|
||||
|
||||
ExportPlugin *New_ExportPCM()
|
||||
movable_ptr<ExportPlugin> New_ExportPCM()
|
||||
{
|
||||
return new ExportPCM();
|
||||
return make_movable<ExportPCM>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user