mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 09:01:15 +02:00
moduleMain functions were never called but with nullptr; so simplify
This commit is contained in:
@@ -38,7 +38,7 @@ DECLARE_MODULE_ENTRY(AudacityModule)
|
||||
{
|
||||
// Create and register the importer
|
||||
// Trust the module manager not to leak this
|
||||
return safenew VampEffectsModule(path);
|
||||
return safenew VampEffectsModule();
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
@@ -52,12 +52,8 @@ DECLARE_BUILTIN_MODULE(VampsEffectBuiltin);
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
VampEffectsModule::VampEffectsModule(const wxString *path)
|
||||
VampEffectsModule::VampEffectsModule()
|
||||
{
|
||||
if (path)
|
||||
{
|
||||
mPath = *path;
|
||||
}
|
||||
}
|
||||
|
||||
VampEffectsModule::~VampEffectsModule()
|
||||
@@ -70,7 +66,7 @@ VampEffectsModule::~VampEffectsModule()
|
||||
|
||||
PluginPath VampEffectsModule::GetPath()
|
||||
{
|
||||
return mPath;
|
||||
return {};
|
||||
}
|
||||
|
||||
ComponentInterfaceSymbol VampEffectsModule::GetSymbol()
|
||||
|
@@ -29,7 +29,7 @@
|
||||
class VampEffectsModule final : public ModuleInterface
|
||||
{
|
||||
public:
|
||||
VampEffectsModule(const wxString *path);
|
||||
VampEffectsModule();
|
||||
virtual ~VampEffectsModule();
|
||||
|
||||
// ComponentInterface implementation
|
||||
@@ -67,9 +67,6 @@ private:
|
||||
std::unique_ptr<Vamp::Plugin> FindPlugin(const PluginPath & wpath,
|
||||
int & output,
|
||||
bool & hasParameters);
|
||||
|
||||
private:
|
||||
PluginPath mPath;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user