diff options
author | David Robillard <d@drobilla.net> | 2006-10-16 07:28:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-10-16 07:28:30 +0000 |
commit | d38458e73cf7dfe02d2ea0ceb050f64df43413b8 (patch) | |
tree | 298face3d076487f61a388a85001cc01a26a7d43 /src/libs/engine/Plugin.h | |
parent | d5049d43809c7546afcc2938791a90c7973d0fc2 (diff) | |
download | ingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.tar.gz ingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.tar.bz2 ingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.zip |
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
Diffstat (limited to 'src/libs/engine/Plugin.h')
-rw-r--r-- | src/libs/engine/Plugin.h | 7 |
1 files changed, 2 insertions, 5 deletions
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 <cstdlib> +#include <boost/utility.hpp> #include <dlfcn.h> #include <string> #include <iostream> @@ -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 |