1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +02:00

Module manager (#549)

* Eliminate ModuleManagerInterface...

... It was there only to provide RegisterModule(), but that was not used
anywhere.  So simplify.

* Remove nested #include of ModuleInterface.h
This commit is contained in:
Paul Licameli
2020-05-29 11:48:52 -04:00
committed by GitHub
parent 5bede69d11
commit 9360359e9d
22 changed files with 35 additions and 99 deletions

View File

@@ -37,7 +37,7 @@ DECLARE_MODULE_ENTRY(AudacityModule)
{
// Create and register the importer
// Trust the module manager not to leak this
return safenew VampEffectsModule(moduleManager, path);
return safenew VampEffectsModule(path);
}
// ============================================================================
@@ -51,10 +51,8 @@ DECLARE_BUILTIN_MODULE(VampsEffectBuiltin);
//
///////////////////////////////////////////////////////////////////////////////
VampEffectsModule::VampEffectsModule(ModuleManagerInterface *moduleManager,
const wxString *path)
VampEffectsModule::VampEffectsModule(const wxString *path)
{
mModMan = moduleManager;
if (path)
{
mPath = *path;

View File

@@ -29,7 +29,7 @@
class VampEffectsModule final : public ModuleInterface
{
public:
VampEffectsModule(ModuleManagerInterface *moduleManager, const wxString *path);
VampEffectsModule(const wxString *path);
virtual ~VampEffectsModule();
// ComponentInterface implementation
@@ -69,7 +69,6 @@ private:
bool & hasParameters);
private:
ModuleManagerInterface *mModMan;
PluginPath mPath;
};