mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 02:31:15 +00:00
Fix template functions for mingw
This commit is contained in:
parent
2410ab8944
commit
253b558a02
@ -76,7 +76,7 @@ class MxPtrList : public MxList<T*> {
|
|||||||
|
|
||||||
static void Destroy(T* p_obj) { delete p_obj; };
|
static void Destroy(T* p_obj) { delete p_obj; };
|
||||||
|
|
||||||
void SetOwnership(MxBool p_ownership) { SetDestroy(p_ownership ? Destroy : MxCollection<T*>::Destroy); }
|
void SetOwnership(MxBool p_ownership) { MxPtrList<T>::SetDestroy(p_ownership ? MxList<T*>::Destroy : MxCollection<T*>::Destroy); }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@ -13,10 +13,10 @@ class MxQueue : public MxList<T> {
|
|||||||
|
|
||||||
MxBool Dequeue(T& p_obj)
|
MxBool Dequeue(T& p_obj)
|
||||||
{
|
{
|
||||||
MxBool hasNext = (m_first != NULL);
|
MxBool hasNext = (this->m_first != NULL);
|
||||||
if (m_first) {
|
if (this->m_first) {
|
||||||
p_obj = m_first->GetValue();
|
p_obj = this->m_first->GetValue();
|
||||||
DeleteEntry(m_first);
|
this->DeleteEntry(this->m_first);
|
||||||
}
|
}
|
||||||
|
|
||||||
return hasNext;
|
return hasNext;
|
||||||
|
|||||||
@ -11,11 +11,11 @@ class MxStreamList : public list<T> {
|
|||||||
public:
|
public:
|
||||||
MxBool PopFront(T& p_obj)
|
MxBool PopFront(T& p_obj)
|
||||||
{
|
{
|
||||||
if (empty())
|
if (this->empty())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
p_obj = front();
|
p_obj = this->front();
|
||||||
pop_front();
|
this->pop_front();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user