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 /protocols/IRCG | |
parent | e285d61d903c2616f5a7ea3026a1068ceb59b513 (diff) |
MNonCopyable - the common class to avoid declaring fake private constructors
Diffstat (limited to 'protocols/IRCG')
-rw-r--r-- | protocols/IRCG/src/irclib.cpp | 4 | ||||
-rw-r--r-- | protocols/IRCG/src/irclib.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp index 5cd1451059..5ffb9c22f1 100644 --- a/protocols/IRCG/src/irclib.cpp +++ b/protocols/IRCG/src/irclib.cpp @@ -75,7 +75,7 @@ void CIrcMessage::Reset() parameters.destroy(); } -CIrcMessage& CIrcMessage::operator = (const CIrcMessage& m) +CIrcMessage& CIrcMessage::operator=(const CIrcMessage& m) { if (&m != this) { sCommand = m.sCommand; @@ -89,7 +89,7 @@ CIrcMessage& CIrcMessage::operator = (const CIrcMessage& m) return *this; } -CIrcMessage& CIrcMessage::operator = (const wchar_t* lpszCmdLine) +CIrcMessage& CIrcMessage::operator=(const wchar_t* lpszCmdLine) { Reset(); ParseIrcCommand(lpszCmdLine); diff --git a/protocols/IRCG/src/irclib.h b/protocols/IRCG/src/irclib.h index dcb6fccf00..7677956762 100644 --- a/protocols/IRCG/src/irclib.h +++ b/protocols/IRCG/src/irclib.h @@ -81,8 +81,8 @@ public : void Reset();
- CIrcMessage& operator = (const CIrcMessage& m);
- CIrcMessage& operator = (const wchar_t* lpszCmdLine);
+ CIrcMessage& operator=(const CIrcMessage& m);
+ CIrcMessage& operator=(const wchar_t* lpszCmdLine);
private :
void ParseIrcCommand(const wchar_t* lpszCmdLine);
|