From d38458e73cf7dfe02d2ea0ceb050f64df43413b8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Oct 2006 07:28:30 +0000 Subject: Used boost::noncopyable to eliminate undefined private copy constructors spread everywhere. git-svn-id: http://svn.drobilla.net/lad/ingen@182 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/Plugin.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/libs/engine/Plugin.h') diff --git a/src/libs/engine/Plugin.h b/src/libs/engine/Plugin.h index a841d6ee..bdd96ed1 100644 --- a/src/libs/engine/Plugin.h +++ b/src/libs/engine/Plugin.h @@ -20,6 +20,7 @@ #include "config.h" #include +#include #include #include #include @@ -45,7 +46,7 @@ class Node; * FIXME: This whole thing is a filthy mess and needs a rewrite. Probably * with derived classes for each plugin type. */ -class Plugin +class Plugin : boost::noncopyable { public: enum Type { LV2, LADSPA, DSSI, Internal, Patch }; @@ -130,10 +131,6 @@ public: Node* instantiate(const string& name, size_t poly, Ingen::Patch* parent, SampleRate srate, size_t buffer_size); private: - // Disallow copies (undefined) - Plugin(const Plugin&); - Plugin& operator=(const Plugin&); - Type _type; string _uri; ///< LV2 only string _lib_path; ///< LADSPA/DSSI only -- cgit v1.2.1