summaryrefslogtreecommitdiff
path: root/plugins/NewAwaySysMod/src/CString.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-17 15:56:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-17 15:56:52 +0300
commit3e05d92dcb5f6c2017bc462554901ba27816bdb4 (patch)
tree3276a7c3527006b74afc00c197ab48a3a43b1e9e /plugins/NewAwaySysMod/src/CString.h
parente285d61d903c2616f5a7ea3026a1068ceb59b513 (diff)
MNonCopyable - the common class to avoid declaring fake private constructors
Diffstat (limited to 'plugins/NewAwaySysMod/src/CString.h')
-rw-r--r--plugins/NewAwaySysMod/src/CString.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewAwaySysMod/src/CString.h b/plugins/NewAwaySysMod/src/CString.h
index 22cb0dd4c3..e079b740cd 100644
--- a/plugins/NewAwaySysMod/src/CString.h
+++ b/plugins/NewAwaySysMod/src/CString.h
@@ -68,16 +68,16 @@ public:
T& operator [] (int nIndex) {_ASSERT(nIndex >= 0 && nIndex <= GetLen()); return pBuf[nIndex];}
operator const T*() const {return pBuf;}
operator T*() {return pBuf;}
- TString<T>& operator = (const T *pStr);
- TString<T>& operator = (const TString<T> &Str) {return *this = Str.pBuf;}
+ TString<T>& operator=(const T *pStr);
+ TString<T>& operator=(const TString<T> &Str) {return *this = Str.pBuf;}
// TCString& operator + (const char *pStr)
// {_ASSERT(pBuf && pStr); TCString Result(*this); return Result.Cat(pStr);}
friend TString<T> operator + (const TString<T> &Str1, const T *Str2)
{_ASSERT(Str1.pBuf && Str2); TString<T> Result(Str1); return Result.Cat(Str2);}
/* friend TCString operator + (const char *Str1, const TCString &Str2)
{_ASSERT(Str1 && Str2.pBuf); TCString Result(Str1); return Result.Cat(Str2);}*/
- TString<T>& operator += (const T *pStr) {_ASSERT(pBuf && pStr); return this->Cat(pStr);}
- TString<T>& operator += (const T c) {_ASSERT(pBuf); return this->Cat(c);}
+ TString<T>& operator+=(const T *pStr) {_ASSERT(pBuf && pStr); return this->Cat(pStr);}
+ TString<T>& operator+=(const T c) {_ASSERT(pBuf); return this->Cat(c);}
int operator == (const T *pStr) const {return (!pBuf || !pStr) ? (pBuf == pStr) : !My_lstrcmp(pBuf, pStr);}
int operator != (const T *pStr) const {return (!pBuf || !pStr) ? (pBuf != pStr) : My_lstrcmp(pBuf, pStr);}
int operator < (const T *pStr) const {_ASSERT(pBuf && pStr); return My_lstrcmp(pBuf, pStr) > 0;}