summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Maid.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-16 07:28:30 +0000
committerDavid Robillard <d@drobilla.net>2006-10-16 07:28:30 +0000
commitd38458e73cf7dfe02d2ea0ceb050f64df43413b8 (patch)
tree298face3d076487f61a388a85001cc01a26a7d43 /src/libs/engine/Maid.h
parentd5049d43809c7546afcc2938791a90c7973d0fc2 (diff)
downloadingen-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/Maid.h')
-rw-r--r--src/libs/engine/Maid.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libs/engine/Maid.h b/src/libs/engine/Maid.h
index a7e74f79..665ffa05 100644
--- a/src/libs/engine/Maid.h
+++ b/src/libs/engine/Maid.h
@@ -17,8 +17,9 @@
#ifndef MAID_H
#define MAID_H
-#include "MaidObject.h"
+#include <boost/utility.hpp>
#include "raul/Queue.h"
+#include "MaidObject.h"
/** Explicitly driven garbage collector.
@@ -32,7 +33,7 @@
*
* \ingroup engine
*/
-class Maid
+class Maid : boost::noncopyable
{
public:
Maid(size_t size);
@@ -43,10 +44,6 @@ public:
void cleanup();
private:
- // Prevent copies
- Maid(const Maid&);
- Maid& operator=(const Maid&);
-
Queue<MaidObject*> m_objects;
};