From f124daa8f3eb3d689d08131b8dbee454485f4851 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 24 Feb 2018 22:43:27 +0100 Subject: general lists: avoid unqualified lookup into dependent bases of class templates (it's a Microsoft extension) --- include/m_system_cpp.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index eed0bcc8e6..c6bd65a25d 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -249,21 +249,22 @@ template struct OBJLIST : public LIST __inline void destroy(void) { - for (int i=0; i < this->count; i++) + for (int i = 0; i < this->count; i++) delete this->items[i]; List_Destroy((SortedList*)this); } - __inline int remove(int idx) { + __inline int remove(int idx) + { delete this->items[idx]; return List_Remove((SortedList*)this, idx); } __inline int remove(T *p) { - int i = getIndex( p ); - if ( i != -1 ) { + int i = this->getIndex(p); + if (i != -1) { remove(i); return 1; } -- cgit v1.2.3