diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-26 17:05:18 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-26 17:18:21 +0200 |
commit | 43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch) | |
tree | 4aba689b76138118b4da043425fb3e8576db418c /src/game-server/mapmanager.cpp | |
parent | e726c34606f85347e70a0deb6b180db03b6d0c25 (diff) | |
download | manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip |
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/game-server/mapmanager.cpp')
-rw-r--r-- | src/game-server/mapmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/mapmanager.cpp b/src/game-server/mapmanager.cpp index 2cc37de..0e682af 100644 --- a/src/game-server/mapmanager.cpp +++ b/src/game-server/mapmanager.cpp @@ -35,12 +35,12 @@ */ static MapManager::Maps maps; -MapManager::Maps const &MapManager::getMaps() +const MapManager::Maps &MapManager::getMaps() { return maps; } -void MapManager::initialize(std::string const &mapReferenceFile) +void MapManager::initialize(const std::string &mapReferenceFile) { int size; char *data = ResourceManager::loadFile(mapReferenceFile, size); @@ -103,7 +103,7 @@ MapComposite *MapManager::getMap(int mapId) return (i != maps.end()) ? i->second : NULL; } -MapComposite *MapManager::getMap(std::string const &mapName) +MapComposite *MapManager::getMap(const std::string &mapName) { Maps::iterator i; for (i = maps.begin(); i != maps.end(); ++i) |