summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 22:43:27 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 22:43:27 +0100
commitf124daa8f3eb3d689d08131b8dbee454485f4851 (patch)
tree5ea61b41fde678646e3eb35b6f0cbed22f2c8e08
parent9c337b9ba738bea42ff1c1e4e55b729c4549304a (diff)
general lists: avoid unqualified lookup into dependent bases of class templates (it's a Microsoft extension)
-rw-r--r--include/m_system_cpp.h9
1 files 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<class T> struct OBJLIST : public LIST<T>
__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;
}