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/Boltun/src/Engine/ValueChooser.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/Boltun/src/Engine/ValueChooser.h') diff --git a/plugins/Boltun/src/Engine/ValueChooser.h b/plugins/Boltun/src/Engine/ValueChooser.h index e442f14530..6ddfc00a5a 100644 --- a/plugins/Boltun/src/Engine/ValueChooser.h +++ b/plugins/Boltun/src/Engine/ValueChooser.h @@ -22,7 +22,7 @@ #define StringChooserH template > -class ValueChooser +class ValueChooser : private MNonCopyable { private: int freeNumbers; @@ -30,8 +30,6 @@ private: const container data; bool notifyOnReset; - ValueChooser& operator=(const ValueChooser&); - public: ValueChooser(const container& vec, bool NotifyOnReset = false) :data(vec), notifyOnReset(NotifyOnReset) -- cgit v1.2.3