diff options
Diffstat (limited to 'include/m_system.h')
-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
|