mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Rename LinkedListHead insertion functions to push_back/push_front to fit standard container naming
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user