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:
@@ -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;
|
||||
|
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user