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:
@@ -31,13 +31,14 @@ class GridReference : public Reference<GridRefManager<OBJECT>, OBJECT, GridRefer
|
||||
void targetObjectBuildLink()
|
||||
{
|
||||
// called from link()
|
||||
this->getTarget()->insertFirst(this);
|
||||
this->getTarget()->push_front(this);
|
||||
this->getTarget()->incSize();
|
||||
}
|
||||
void targetObjectDestroyLink()
|
||||
{
|
||||
// called from unlink()
|
||||
if (this->isValid()) this->getTarget()->decSize();
|
||||
if (this->isValid())
|
||||
this->getTarget()->decSize();
|
||||
}
|
||||
void sourceObjectDestroyLink()
|
||||
{
|
||||
|
||||
@@ -1387,7 +1387,7 @@ void Group::ResetInstances(InstanceResetMethod method, Player* notifyPlayer)
|
||||
|
||||
void Group::LinkOwnedInstance(GroupInstanceReference* ref)
|
||||
{
|
||||
m_ownedInstancesMgr.insertLast(ref);
|
||||
m_ownedInstancesMgr.push_back(ref);
|
||||
}
|
||||
|
||||
void Group::_homebindIfInstance(Player* player)
|
||||
@@ -1789,7 +1789,7 @@ void Group::SetGroupMemberFlag(ObjectGuid guid, bool apply, GroupMemberFlags fla
|
||||
|
||||
void Group::LinkMember(GroupReference* pRef)
|
||||
{
|
||||
m_memberMgr.insertFirst(pRef);
|
||||
m_memberMgr.push_front(pRef);
|
||||
}
|
||||
|
||||
void Group::DelinkMember(ObjectGuid guid)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
void MapReference::targetObjectBuildLink()
|
||||
{
|
||||
// called from link()
|
||||
getTarget()->m_mapRefManager.insertFirst(this);
|
||||
getTarget()->m_mapRefManager.push_front(this);
|
||||
getTarget()->m_mapRefManager.incSize();
|
||||
}
|
||||
|
||||
|
||||
@@ -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