From 3e05d92dcb5f6c2017bc462554901ba27816bdb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Apr 2018 15:56:52 +0300 Subject: MNonCopyable - the common class to avoid declaring fake private constructors --- plugins/WinterSpeak/src/Subject.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins/WinterSpeak/src/Subject.h') 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 -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 m_observer_list; }; -- cgit v1.2.3