Core/Misc: Rename LinkedListHead insertion functions to push_back/push_front to fit standard container naming

This commit is contained in:
Shauren
2025-07-11 18:47:08 +02:00
parent f4c0ede726
commit 419cdf87dd
4 changed files with 8 additions and 7 deletions

View File

@@ -115,12 +115,12 @@ class LinkedListHead
LinkedListElement * getLast() { return (empty() ? nullptr : iLast.iPrev); }
LinkedListElement const* getLast() const { return (empty() ? nullptr : iLast.iPrev); }
void insertFirst(LinkedListElement* pElem)
void push_front(LinkedListElement* pElem)
{
iFirst.insertAfter(pElem);
}
void insertLast(LinkedListElement* pElem)
void push_back(LinkedListElement* pElem)
{
iLast.insertBefore(pElem);
}