diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-17 15:56:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-17 15:56:52 +0300 |
commit | 3e05d92dcb5f6c2017bc462554901ba27816bdb4 (patch) | |
tree | 3276a7c3527006b74afc00c197ab48a3a43b1e9e /plugins/WinterSpeak/src/Subject.h | |
parent | e285d61d903c2616f5a7ea3026a1068ceb59b513 (diff) |
MNonCopyable - the common class to avoid declaring fake private constructors
Diffstat (limited to 'plugins/WinterSpeak/src/Subject.h')
-rw-r--r-- | plugins/WinterSpeak/src/Subject.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/WinterSpeak/src/Subject.h b/plugins/WinterSpeak/src/Subject.h index f4bba3b075..d3ae97fba6 100644 --- a/plugins/WinterSpeak/src/Subject.h +++ b/plugins/WinterSpeak/src/Subject.h @@ -3,7 +3,7 @@ #include "Observer.h"
#include <list>
-class Subject
+class Subject : private MNonCopyable
{
public:
Subject();
@@ -27,12 +27,6 @@ public: void detach(const Observer &observer);
private:
- //--------------------------------------------------------------------------
- // Description : Disallow assignment operator and copy constructor
- //--------------------------------------------------------------------------
- Subject(const Subject &rhs);
- const Subject & operator=(const Subject &rhs);
-
std::list<Observer *> m_observer_list;
};
|