From acd0fc79f63f6881ead6fff2985755dd45ea3a5d Mon Sep 17 00:00:00 2001 From: Spp- Date: Mon, 1 Aug 2011 14:23:27 +0200 Subject: Core: Pass by const reference for simple objects replaced with pass by value --- src/server/game/Maps/Map.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/game/Maps/Map.h') diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h index 63cb10a8f89..6ff4bf05d42 100755 --- a/src/server/game/Maps/Map.h +++ b/src/server/game/Maps/Map.h @@ -260,7 +260,7 @@ class Map : public GridRefManager template void Remove(T *, bool); void VisitNearbyCellsOf(WorldObject* obj, TypeContainerVisitor &gridVisitor, TypeContainerVisitor &worldVisitor); - virtual void Update(const uint32&); + virtual void Update(const uint32); float GetVisibilityRange() const { return m_VisibleDistance; } //function for setting up visibility distance for maps on per-type/per-Id basis @@ -286,7 +286,7 @@ class Map : public GridRefManager bool GetUnloadLock(const GridPair &p) const { return getNGrid(p.x_coord, p.y_coord)->getUnloadLock(); } void SetUnloadLock(const GridPair &p, bool on) { getNGrid(p.x_coord, p.y_coord)->setUnloadExplicitLock(on); } void LoadGrid(float x, float y); - bool UnloadGrid(const uint32 &x, const uint32 &y, bool pForce); + bool UnloadGrid(const uint32 x, const uint32 y, bool pForce); virtual void UnloadAll(); void ResetGridExpiry(NGridType &grid, float factor = 1) const @@ -473,7 +473,7 @@ class Map : public GridRefManager void setNGrid(NGridType* grid, uint32 x, uint32 y); void ScriptsProcess(); - void UpdateActiveCells(const float &x, const float &y, const uint32 &t_diff); + void UpdateActiveCells(const float &x, const float &y, const uint32 t_diff); protected: void SetUnloadReferenceLock(const GridPair &p, bool on) { getNGrid(p.x_coord, p.y_coord)->setUnloadReferenceLock(on); } @@ -516,7 +516,7 @@ class Map : public GridRefManager //these functions used to process player/mob aggro reactions and //visibility calculations. Highly optimized for massive calculations - void ProcessRelocationNotifies(const uint32 &diff); + void ProcessRelocationNotifies(const uint32 diff); bool i_scriptLock; std::set i_objectsToRemove; @@ -577,7 +577,7 @@ class InstanceMap : public Map ~InstanceMap(); bool Add(Player *); void Remove(Player *, bool); - void Update(const uint32&); + void Update(const uint32); void CreateInstanceData(bool load); bool Reset(uint8 method); uint32 GetScriptId() { return i_script_id; } -- cgit v1.2.3