From 36f1e2ea3d2c7d20d8fa267a3a66438044e99e8e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Jun 2006 19:26:53 +0000 Subject: Reworked use of Plugin class in engine slightly (more RAII-ey) git-svn-id: http://svn.drobilla.net/lad/grauph@56 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/InternalNode.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libs/engine/InternalNode.h') diff --git a/src/libs/engine/InternalNode.h b/src/libs/engine/InternalNode.h index 14a4bc95..e7c35ebd 100644 --- a/src/libs/engine/InternalNode.h +++ b/src/libs/engine/InternalNode.h @@ -33,8 +33,8 @@ class Patch; class InternalNode : public NodeBase { public: - InternalNode(const string& path, size_t poly, Patch* parent, samplerate srate, size_t buffer_size) - : NodeBase(path, poly, parent, srate, buffer_size), + InternalNode(const Plugin* plugin, const string& path, size_t poly, Patch* parent, samplerate srate, size_t buffer_size) + : NodeBase(plugin, path, poly, parent, srate, buffer_size), _is_added(false) { _plugin.lib_path("/Om"); @@ -53,7 +53,6 @@ public: //{ NodeBase::send_creation_messages(client); } virtual const Plugin* plugin() const { return &_plugin; } - virtual void plugin(const Plugin* const) { exit(EXIT_FAILURE); } protected: // Disallow copies (undefined) -- cgit v1.2.1