mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core: Pass by const reference for simple objects replaced with pass by value
This commit is contained in:
@@ -297,7 +297,7 @@ public:
|
||||
|
||||
uint64 prisonerGUID;
|
||||
|
||||
void SetGUID(const uint64 &guid, int32 /*id*/)
|
||||
void SetGUID(const uint64 guid, int32 /*id*/)
|
||||
{
|
||||
if (!prisonerGUID)
|
||||
prisonerGUID = guid;
|
||||
@@ -883,7 +883,7 @@ public:
|
||||
|
||||
uint64 minerGUID;
|
||||
|
||||
void SetGUID(const uint64 &guid, int32 /*id*/)
|
||||
void SetGUID(const uint64 guid, int32 /*id*/)
|
||||
{
|
||||
minerGUID = guid;
|
||||
}
|
||||
|
||||
@@ -317,7 +317,7 @@ class boss_rimefang : public CreatureScript
|
||||
_EnterEvadeMode();
|
||||
}
|
||||
|
||||
void SetGUID(const uint64& guid, int32 type)
|
||||
void SetGUID(const uint64 guid, int32 type)
|
||||
{
|
||||
if (type == GUID_HOARFROST)
|
||||
{
|
||||
@@ -383,7 +383,7 @@ class player_overlord_brandAI : public PlayerAI
|
||||
tyrannus = NULL;
|
||||
}
|
||||
|
||||
void SetGUID(const uint64& guid, int32 /*type*/)
|
||||
void SetGUID(const uint64 guid, int32 /*type*/)
|
||||
{
|
||||
tyrannus = ObjectAccessor::GetCreature(*me, guid);
|
||||
if (!tyrannus)
|
||||
|
||||
@@ -163,7 +163,7 @@ public:
|
||||
|
||||
uint64 victimGUID;
|
||||
|
||||
void SetGUID(const uint64 &guid, int32 /*param*/)
|
||||
void SetGUID(const uint64 guid, int32 /*param*/)
|
||||
{
|
||||
victimGUID = guid;
|
||||
if (me->m_spells[0] && victimGUID)
|
||||
|
||||
@@ -379,7 +379,7 @@ public:
|
||||
DoScriptText(RAND(SAY_SLAY_1, SAY_SLAY_2, SAY_SLAY_3, SAY_SLAY_4), me);
|
||||
}
|
||||
|
||||
void DespawnBoatGhosts(uint64& m_uiCreatureGUID)
|
||||
void DespawnBoatGhosts(uint64 m_uiCreatureGUID)
|
||||
{
|
||||
if (m_uiCreatureGUID)
|
||||
if (Creature* pTemp = Unit::GetCreature(*me, m_uiCreatureGUID))
|
||||
|
||||
@@ -2431,7 +2431,7 @@ public:
|
||||
uiEventPhase = 1;
|
||||
}
|
||||
|
||||
void SetGUID(const uint64 &uiGuid, int32 /*iId*/)
|
||||
void SetGUID(const uint64 uiGuid, int32 /*iId*/)
|
||||
{
|
||||
uiPlayerGUID = uiGuid;
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ public:
|
||||
bRemoveFlag = false;
|
||||
}
|
||||
|
||||
void SetGUID(const uint64 &guid, int32 /*id*/)
|
||||
void SetGUID(const uint64 guid, int32 /*id*/)
|
||||
{
|
||||
uiPlayerGUID = guid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user