mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core: Pass by const reference for simple objects replaced with pass by value
This commit is contained in:
@@ -515,7 +515,7 @@ void Map::VisitNearbyCellsOf(WorldObject* obj, TypeContainerVisitor<Trinity::Obj
|
||||
}
|
||||
}
|
||||
|
||||
void Map::Update(const uint32 &t_diff)
|
||||
void Map::Update(const uint32 t_diff)
|
||||
{
|
||||
/// update worldsessions for existing players
|
||||
for (m_mapRefIter = m_mapRefManager.begin(); m_mapRefIter != m_mapRefManager.end(); ++m_mapRefIter)
|
||||
@@ -593,7 +593,7 @@ struct ResetNotifier
|
||||
void Visit(PlayerMapType &m) { resetNotify<Player>(m);}
|
||||
};
|
||||
|
||||
void Map::ProcessRelocationNotifies(const uint32 & diff)
|
||||
void Map::ProcessRelocationNotifies(const uint32 diff)
|
||||
{
|
||||
for (GridRefManager<NGridType>::iterator i = GridRefManager<NGridType>::begin(); i != GridRefManager<NGridType>::end(); ++i)
|
||||
{
|
||||
@@ -929,7 +929,7 @@ bool Map::CreatureRespawnRelocation(Creature *c)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Map::UnloadGrid(const uint32 &x, const uint32 &y, bool unloadAll)
|
||||
bool Map::UnloadGrid(const uint32 x, const uint32 y, bool unloadAll)
|
||||
{
|
||||
NGridType *grid = getNGrid(x, y);
|
||||
ASSERT(grid != NULL);
|
||||
@@ -2388,7 +2388,7 @@ bool InstanceMap::Add(Player* player)
|
||||
return true;
|
||||
}
|
||||
|
||||
void InstanceMap::Update(const uint32& t_diff)
|
||||
void InstanceMap::Update(const uint32 t_diff)
|
||||
{
|
||||
Map::Update(t_diff);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user