aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/World
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2012-10-24 15:34:23 +0200
committerSpp <spp@jorge.gr>2012-10-24 15:34:48 +0200
commit9fbc4c0ae2acab3ceba717b33c72e2382a1e5bb8 (patch)
tree2190f494bc8830b8a695c5fcad612e4d0c350fee /src/server/game/World
parent013fb1f4d9131fc8ec45931445e6a05408dce8f9 (diff)
Core/Misc: reduced amount of string memory allocations (Step II)
Diffstat (limited to 'src/server/game/World')
-rwxr-xr-xsrc/server/game/World/World.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/World/World.h b/src/server/game/World/World.h
index 9a0246fb3ac..9046486a181 100755
--- a/src/server/game/World/World.h
+++ b/src/server/game/World/World.h
@@ -605,19 +605,19 @@ class World
void SetAllowMovement(bool allow) { m_allowMovement = allow; }
/// Set a new Message of the Day
- void SetMotd(const std::string& motd);
+ void SetMotd(std::string const& motd);
/// Get the current Message of the Day
const char* GetMotd() const;
/// Set the string for new characters (first login)
- void SetNewCharString(std::string str) { m_newCharString = str; }
+ void SetNewCharString(std::string const& str) { m_newCharString = str; }
/// Get the string for new characters (first login)
- const std::string& GetNewCharString() const { return m_newCharString; }
+ std::string const& GetNewCharString() const { return m_newCharString; }
LocaleConstant GetDefaultDbcLocale() const { return m_defaultDbcLocale; }
/// Get the path where data (dbc, maps) are stored on disk
- std::string GetDataPath() const { return m_dataPath; }
+ std::string const& GetDataPath() const { return m_dataPath; }
/// When server started?
time_t const& GetStartTime() const { return m_startTime; }