Core: Some more missing changes from previous commit (Pass by const reference for simple objects replaced with pass by value). Also fix unintended change
This commit is contained in:
@@ -53,7 +53,7 @@ ArenaTeam* ArenaTeamMgr::GetArenaTeamByName(const std::string& arenaTeamName) co
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ArenaTeam* ArenaTeamMgr::GetArenaTeamByCaptain(uint64 const& guid) const
|
||||
ArenaTeam* ArenaTeamMgr::GetArenaTeamByCaptain(unit64 const guid) const
|
||||
{
|
||||
for (ArenaTeamContainer::const_iterator itr = ArenaTeamStore.begin(); itr != ArenaTeamStore.end(); ++itr)
|
||||
if (itr->second->GetCaptain() == guid)
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
|
||||
ArenaTeam* GetArenaTeamById(uint32 arenaTeamId) const;
|
||||
ArenaTeam* GetArenaTeamByName(const std::string& arenaTeamName) const;
|
||||
ArenaTeam* GetArenaTeamByCaptain(uint64 const& guid) const;
|
||||
ArenaTeam* GetArenaTeamByCaptain(unit64 const guid) const;
|
||||
|
||||
void LoadArenaTeams();
|
||||
void AddArenaTeam(ArenaTeam* arenaTeam);
|
||||
|
||||
@@ -349,7 +349,7 @@ class BattlegroundEY : public Battleground
|
||||
void RespawnFlagAfterDrop();
|
||||
|
||||
void RemovePlayer(Player *plr, uint64 guid, uint32 team);
|
||||
void HandleBuffUse(uint64 const& buff_guid);
|
||||
void HandleBuffUse(unit64 const buff_guid);
|
||||
void HandleAreaTrigger(Player *Source, uint32 Trigger);
|
||||
void HandleKillPlayer(Player* player, Player* killer);
|
||||
virtual WorldSafeLocsEntry const* GetClosestGraveYard(Player* player);
|
||||
|
||||
@@ -85,7 +85,7 @@ void BattlegroundIC::SendTransportInit(Player* player)
|
||||
player->GetSession()->SendPacket(&packet);
|
||||
}
|
||||
|
||||
void BattlegroundIC::DoAction(uint32 action, uint64 const& var)
|
||||
void BattlegroundIC::DoAction(uint32 action, unit64 const var)
|
||||
{
|
||||
if (action != ACTION_TELEPORT_PLAYER_TO_TRANSPORT)
|
||||
return;
|
||||
|
||||
@@ -888,7 +888,7 @@ class BattlegroundIC : public Battleground
|
||||
|
||||
void FillInitialWorldStates(WorldPacket& data);
|
||||
|
||||
void DoAction(uint32 action, uint64 const& var);
|
||||
void DoAction(uint32 action, unit64 const var);
|
||||
|
||||
virtual void HandlePlayerResurrect(Player* player);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user