aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/Map.h
diff options
context:
space:
mode:
authorSpp- <u84280@epreinf21.(none)>2011-08-01 14:23:27 +0200
committerSpp- <u84280@epreinf21.(none)>2011-08-01 14:23:27 +0200
commitacd0fc79f63f6881ead6fff2985755dd45ea3a5d (patch)
treed76e47d095375a7cec6a6a33ada12edc33ceac6c /src/server/game/Maps/Map.h
parent1fc1da842eae9f2173771777dddaa38646c2844d (diff)
Core: Pass by const reference for simple objects replaced with pass by value
Diffstat (limited to 'src/server/game/Maps/Map.h')
-rwxr-xr-xsrc/server/game/Maps/Map.h10
1 files changed, 5 insertions, 5 deletions
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<NGridType>
template<class T> void Remove(T *, bool);
void VisitNearbyCellsOf(WorldObject* obj, TypeContainerVisitor<Trinity::ObjectUpdater, GridTypeMapContainer> &gridVisitor, TypeContainerVisitor<Trinity::ObjectUpdater, WorldTypeMapContainer> &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<NGridType>
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<NGridType>
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<NGridType>
//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<WorldObject *> 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; }