From 20c4f832ca4ad14a90e60379b28e517379bb52d9 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 25 Oct 2023 18:02:49 -0400 Subject: [PATCH] Match MxList::_InsertEntry to 100% --- LEGO1/mxlist.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LEGO1/mxlist.h b/LEGO1/mxlist.h index 68b0ac88..f6093f60 100644 --- a/LEGO1/mxlist.h +++ b/LEGO1/mxlist.h @@ -83,7 +83,7 @@ protected: private: void _DeleteEntry(MxListEntry* match); - void _InsertEntry(T, MxListEntry*, MxListEntry*); + MxListEntry* _InsertEntry(T, MxListEntry*, MxListEntry*); }; template @@ -161,7 +161,7 @@ inline void MxList::Append(T p_newobj) } template -inline void MxList::_InsertEntry(T p_newobj, MxListEntry* p_prev, MxListEntry* p_next) +inline MxListEntry* MxList::_InsertEntry(T p_newobj, MxListEntry* p_prev, MxListEntry* p_next) { MxListEntry* newEntry = new MxListEntry(p_newobj, p_prev, p_next); @@ -176,6 +176,7 @@ inline void MxList::_InsertEntry(T p_newobj, MxListEntry* p_prev, MxListEn this->m_last = newEntry; this->m_count++; + return newEntry; } template