diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-21 17:09:34 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-21 17:09:34 +0300 |
commit | 12aa166ab2c280b1b8cf4d8507512c750a587de1 (patch) | |
tree | d86aaa3dd022a13e7c9e77b7db468ad260bdf634 /include | |
parent | 4d2f4fab80174f6ab5e730b62fdf7abda015768b (diff) |
code cleaning
Diffstat (limited to 'include')
-rw-r--r-- | include/m_system.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/m_system.h b/include/m_system.h index 2c00e048f2..2d36a47bcd 100644 --- a/include/m_system.h +++ b/include/m_system.h @@ -389,7 +389,7 @@ template<class T> struct OBJLIST : public LIST<T> 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));
@@ -425,7 +425,12 @@ template<class T> struct OBJLIST : public LIST<T> return 0;
}
- __inline T &operator[](int idx) const { return *this->items[idx]; }
+ __inline void removeItem(T **p)
+ {
+ remove(int(p - items));
+ }
+
+ __inline T& operator[](int idx) const { return *this->items[idx]; }
};
#define __A2W(s) L ## s
|