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 | |
parent | e285d61d903c2616f5a7ea3026a1068ceb59b513 (diff) |
MNonCopyable - the common class to avoid declaring fake private constructors
Diffstat (limited to 'plugins/WinterSpeak')
-rw-r--r-- | plugins/WinterSpeak/src/AnnounceDialog.h | 2 | ||||
-rw-r--r-- | plugins/WinterSpeak/src/DialogConfigActive.h | 2 | ||||
-rw-r--r-- | plugins/WinterSpeak/src/DialogConfigEngine.h | 2 | ||||
-rw-r--r-- | plugins/WinterSpeak/src/MirandaDialog.h | 2 | ||||
-rw-r--r-- | plugins/WinterSpeak/src/Subject.h | 8 |
5 files changed, 2 insertions, 14 deletions
diff --git a/plugins/WinterSpeak/src/AnnounceDialog.h b/plugins/WinterSpeak/src/AnnounceDialog.h index 994e75d524..cc9d5fd94f 100644 --- a/plugins/WinterSpeak/src/AnnounceDialog.h +++ b/plugins/WinterSpeak/src/AnnounceDialog.h @@ -4,8 +4,6 @@ class AnnounceDialog : public MirandaDialog
{
- AnnounceDialog& operator=(const AnnounceDialog&);
-
public:
AnnounceDialog(AnnounceDatabase &db);
~AnnounceDialog();
diff --git a/plugins/WinterSpeak/src/DialogConfigActive.h b/plugins/WinterSpeak/src/DialogConfigActive.h index 28978787f8..77eae56e07 100644 --- a/plugins/WinterSpeak/src/DialogConfigActive.h +++ b/plugins/WinterSpeak/src/DialogConfigActive.h @@ -3,8 +3,6 @@ class DialogConfigActive : public MirandaDialog
{
- DialogConfigActive& operator=(const DialogConfigActive&);
-
public:
//--------------------------------------------------------------------------
// Description : Initialise
diff --git a/plugins/WinterSpeak/src/DialogConfigEngine.h b/plugins/WinterSpeak/src/DialogConfigEngine.h index e103ec1003..5d585bf6cf 100644 --- a/plugins/WinterSpeak/src/DialogConfigEngine.h +++ b/plugins/WinterSpeak/src/DialogConfigEngine.h @@ -7,8 +7,6 @@ class TextToSpeech; class DialogConfigEngine : public MirandaDialog
{
- DialogConfigEngine& operator=(const DialogConfigEngine&);
-
public:
DialogConfigEngine(ConfigDatabase &db);
virtual ~DialogConfigEngine();
diff --git a/plugins/WinterSpeak/src/MirandaDialog.h b/plugins/WinterSpeak/src/MirandaDialog.h index 22424a6f30..5b66634eb4 100644 --- a/plugins/WinterSpeak/src/MirandaDialog.h +++ b/plugins/WinterSpeak/src/MirandaDialog.h @@ -1,5 +1,5 @@ #pragma once
-class MirandaDialog
+class MirandaDialog : private MNonCopyable
{
public:
MirandaDialog(void);
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;
};
|