diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-23 20:47:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-23 20:47:15 +0000 |
commit | fe59b607ba13cd60375174b0d901b860bfa52e07 (patch) | |
tree | ac0328f9fa8e0163ff693f094c815134eceb88ba /include/m_system_cpp.h | |
parent | 5a06912fcbff12795fe781f6480295f7daf0dc8b (diff) |
fix for the array assignment
git-svn-id: http://svn.miranda-ng.org/main/trunk@589 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_system_cpp.h')
-rw-r--r-- | include/m_system_cpp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index 1a6cb833f2..33f4640579 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -54,6 +54,16 @@ template<class T> struct LIST sortFunc = FTSortFunc(id);
}
+ __inline LIST& operator=(const LIST& x)
+ { destroy();
+ #if defined(_STATIC)
+ List_ObjCopy((SortedList*)&x, (SortedList*)this, sizeof(T));
+ #else
+ li.List_ObjCopy((SortedList*)&x, (SortedList*)this, sizeof(T));
+ #endif
+ return *this;
+ }
+
__inline T* operator[](int idx) const { return (idx >= 0 && idx < count) ? items[idx] : NULL; }
__inline int getCount(void) const { return count; }
__inline T** getArray(void) const { return items; }
|