aboutsummaryrefslogtreecommitdiff
path: root/common/singleton.h
diff options
context:
space:
mode:
authorMax Horn2007-03-17 10:36:14 +0000
committerMax Horn2007-03-17 10:36:14 +0000
commit97514214349ed236c54fa6a91a0937b9c6073aab (patch)
tree0d1034f07270c91d629bdd5b62ff81f1bb2a20e8 /common/singleton.h
parentc1f4dbda7794fbc174668def400cbfe315f71f51 (diff)
downloadscummvm-rg350-97514214349ed236c54fa6a91a0937b9c6073aab.tar.gz
scummvm-rg350-97514214349ed236c54fa6a91a0937b9c6073aab.tar.bz2
scummvm-rg350-97514214349ed236c54fa6a91a0937b9c6073aab.zip
Added class NonCopyable, and made various things derive from it
svn-id: r26163
Diffstat (limited to 'common/singleton.h')
-rw-r--r--common/singleton.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/singleton.h b/common/singleton.h
index 75acb9e668..5e72e72230 100644
--- a/common/singleton.h
+++ b/common/singleton.h
@@ -24,14 +24,15 @@
#ifndef COMMON_SINGLETON_H
#define COMMON_SINGLETON_H
+#include "common/noncopyable.h"
+
namespace Common {
/**
* Generic template base class for implementing the singleton design pattern.
*/
template <class T>
-class Singleton
-{
+class Singleton : NonCopyable {
private:
Singleton<T>(const Singleton<T>&);
Singleton<T>& operator= (const Singleton<T>&);