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/SmileyAdd/src/smileys.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/smileys.h b/plugins/SmileyAdd/src/smileys.h index 4f02daed07..d75d40c418 100644 --- a/plugins/SmileyAdd/src/smileys.h +++ b/plugins/SmileyAdd/src/smileys.h @@ -104,13 +104,13 @@ template struct SMOBJLIST : public OBJLIST { SMOBJLIST() : OBJLIST(5) {}; - SMOBJLIST& operator = (const SMOBJLIST& lst) + SMOBJLIST& operator=(const SMOBJLIST& lst) { OBJLIST::destroy(); - return operator += (lst); + return operator+=(lst); } - SMOBJLIST& operator += (const SMOBJLIST& lst) + SMOBJLIST& operator+=(const SMOBJLIST& lst) { for (auto &it : lst) insert(new T(*it)); -- cgit v1.2.3