From 62e59387c15f062f16984cab024a0980a8503369 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Sep 2013 17:07:04 +0000 Subject: attempt to wipe out STL from extra icons git-svn-id: http://svn.miranda-ng.org/main/trunk@6252 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_system_cpp.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'include/m_system_cpp.h') 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 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 struct OBJLIST : public LIST return List_Remove((SortedList*)this, idx); } - __inline int remove(T* p) + __inline int remove(T *p) { int i = getIndex( p ); if ( i != -1 ) { -- cgit v1.2.3