From e3cefc7b6ca803e3f87dbadae54a110332778490 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Jul 2012 22:41:06 +0000 Subject: - first of the /Core standard plugins; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_system_cpp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/m_system_cpp.h') diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index 0b79d4d552..c42bd68272 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -44,7 +44,7 @@ public: __inline mir_ptr() : data((T*)mir_calloc(sizeof(T))) {} __inline mir_ptr(T* _p) : data(_p) {} __inline ~mir_ptr() { mir_free(data); } - __inline T* operator= (T* _p) { if (data) mir_free(data); data = _p; return data; } + __inline T* operator = (T* _p) { if (data) mir_free(data); data = _p; return data; } __inline T* operator->() const { return data; } __inline operator T*() const { return data; } __inline operator INT_PTR() const { return (INT_PTR)data; } @@ -94,7 +94,7 @@ template struct LIST List_Copy((SortedList*)&x, (SortedList*)this, sizeof(T)); } - __inline LIST& operator=(const LIST& x) + __inline LIST& operator = (const LIST& x) { destroy(); List_Copy((SortedList*)&x, (SortedList*)this, sizeof(T)); return *this; @@ -139,7 +139,7 @@ template struct OBJLIST : public LIST List_ObjCopy((SortedList*)&x, (SortedList*)this, sizeof(T)); } - __inline OBJLIST& operator=(const OBJLIST& x) + __inline OBJLIST& operator = (const OBJLIST& x) { destroy(); List_ObjCopy((SortedList*)&x, (SortedList*)this, sizeof(T)); return *this; -- cgit v1.2.3