Skip to content

Commit 92b67c1

Browse files
committed
chore(TrinityCore#31194): pass by const ref
1 parent 6c1aa23 commit 92b67c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/server/game/Globals/ObjectMgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7019,7 +7019,7 @@ WorldSafeLocsEntry const* ObjectMgr::GetDefaultGraveyard(uint32 team) const
70197019
else return nullptr;
70207020
}
70217021

7022-
WorldSafeLocsEntry const* ObjectMgr::GetClosestGraveyard(float x, float y, float z, uint32 MapId, uint32 team, ObjectGuid playerGuid, const std::string &playerName) const
7022+
WorldSafeLocsEntry const* ObjectMgr::GetClosestGraveyard(float x, float y, float z, uint32 MapId, uint32 team, const ObjectGuid& playerGuid, const std::string &playerName) const
70237023
{
70247024
// search for zone associated closest graveyard
70257025
uint32 zoneId = sMapMgr->GetZoneId(PHASEMASK_NORMAL, MapId, x, y, z);

src/server/game/Globals/ObjectMgr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ class TC_GAME_API ObjectMgr
10591059
QuestGreeting const* GetQuestGreeting(ObjectGuid guid) const;
10601060

10611061
WorldSafeLocsEntry const* GetDefaultGraveyard(uint32 team) const;
1062-
WorldSafeLocsEntry const* GetClosestGraveyard(float x, float y, float z, uint32 MapId, uint32 team, ObjectGuid playerGuid, const std::string &playerName) const;
1062+
WorldSafeLocsEntry const* GetClosestGraveyard(float x, float y, float z, uint32 MapId, uint32 team, const ObjectGuid& playerGuid, const std::string &playerName) const;
10631063
bool AddGraveyardLink(uint32 id, uint32 zoneId, uint32 team, bool persist = true);
10641064
void RemoveGraveyardLink(uint32 id, uint32 zoneId, uint32 team, bool persist = false);
10651065
void LoadGraveyardZones();

0 commit comments

Comments
 (0)