diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-27 17:07:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-27 17:07:04 +0000 |
commit | 62e59387c15f062f16984cab024a0980a8503369 (patch) | |
tree | dc0640bcde3dd4f4c314fa289a3245c1891b479f /include/m_system_cpp.h | |
parent | 8a3b60207162ad0d6540531c6ede0696370b75b3 (diff) |
attempt to wipe out STL from extra icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@6252 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_system_cpp.h')
-rw-r--r-- | include/m_system_cpp.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index 243a523d67..d30c857713 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -137,20 +137,22 @@ template<class T> struct LIST return *this;
}
- __inline int getIndex(T* p) const
+ __inline int getIndex(T *p) const
{ int idx;
return ( !List_GetIndex((SortedList*)this, p, &idx)) ? -1 : idx;
}
__inline void destroy(void) { List_Destroy((SortedList*)this); }
- __inline T* find(T* p) { return (T*)List_Find((SortedList*)this, p); }
- __inline int indexOf(T* p) { return List_IndexOf((SortedList*)this, p); }
- __inline int insert(T* p, int idx) { return List_Insert((SortedList*)this, p, idx); }
+ __inline T* find(T *p) { return (T*)List_Find((SortedList*)this, p); }
+ __inline int indexOf(T *p) { return List_IndexOf((SortedList*)this, p); }
+ __inline int insert(T *p, int idx) { return List_Insert((SortedList*)this, p, idx); }
__inline int remove(int idx) { return List_Remove((SortedList*)this, idx); }
- __inline int insert(T* p) { return List_InsertPtr((SortedList*)this, p); }
- __inline int remove(T* p) { return List_RemovePtr((SortedList*)this, p); }
+ __inline int insert(T *p) { return List_InsertPtr((SortedList*)this, p); }
+ __inline int remove(T *p) { return List_RemovePtr((SortedList*)this, p); }
+
+ __inline void put(int idx, T *p) { items[idx] = p; }
protected:
T** items;
@@ -200,7 +202,7 @@ template<class T> struct OBJLIST : public LIST<T> return List_Remove((SortedList*)this, idx);
}
- __inline int remove(T* p)
+ __inline int remove(T *p)
{
int i = getIndex( p );
if ( i != -1 ) {
|