mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-26 22:21:50 -04:00
Match MxList<T>::_InsertEntry to 100%
This commit is contained in:
parent
7d8c57fc9c
commit
20c4f832ca
@ -83,7 +83,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void _DeleteEntry(MxListEntry<T>* match);
|
void _DeleteEntry(MxListEntry<T>* match);
|
||||||
void _InsertEntry(T, MxListEntry<T>*, MxListEntry<T>*);
|
MxListEntry<T>* _InsertEntry(T, MxListEntry<T>*, MxListEntry<T>*);
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
@ -161,7 +161,7 @@ inline void MxList<T>::Append(T p_newobj)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
inline void MxList<T>::_InsertEntry(T p_newobj, MxListEntry<T>* p_prev, MxListEntry<T>* p_next)
|
inline MxListEntry<T>* MxList<T>::_InsertEntry(T p_newobj, MxListEntry<T>* p_prev, MxListEntry<T>* p_next)
|
||||||
{
|
{
|
||||||
MxListEntry<T>* newEntry = new MxListEntry<T>(p_newobj, p_prev, p_next);
|
MxListEntry<T>* newEntry = new MxListEntry<T>(p_newobj, p_prev, p_next);
|
||||||
|
|
||||||
@ -176,6 +176,7 @@ inline void MxList<T>::_InsertEntry(T p_newobj, MxListEntry<T>* p_prev, MxListEn
|
|||||||
this->m_last = newEntry;
|
this->m_last = newEntry;
|
||||||
|
|
||||||
this->m_count++;
|
this->m_count++;
|
||||||
|
return newEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user