summaryrefslogtreecommitdiff
path: root/src/resources/mapdb.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-16 00:34:53 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-16 00:34:53 +0300
commitcf79b26f999ddd795a54b553af3fdb553ec04536 (patch)
tree8ebc6649f316d5b3021ad80f72b79e9f209366ad /src/resources/mapdb.h
parent665e33246a82838dc8893e6b84a576de803a3195 (diff)
downloadplus-cf79b26f999ddd795a54b553af3fdb553ec04536.tar.gz
plus-cf79b26f999ddd795a54b553af3fdb553ec04536.tar.bz2
plus-cf79b26f999ddd795a54b553af3fdb553ec04536.tar.xz
plus-cf79b26f999ddd795a54b553af3fdb553ec04536.zip
improve mapdb file.
Diffstat (limited to 'src/resources/mapdb.h')
-rw-r--r--src/resources/mapdb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/mapdb.h b/src/resources/mapdb.h
index 574c99780..1f54a17f0 100644
--- a/src/resources/mapdb.h
+++ b/src/resources/mapdb.h
@@ -36,7 +36,7 @@ namespace MapDB
struct MapInfo
{
std::string atlas;
- StringVect *files;
+ const StringVect *files;
};
/**
@@ -53,9 +53,9 @@ namespace MapDB
*/
void unload();
- std::string getMapName(const std::string &name) A_WARN_UNUSED;
+ const std::string getMapName(const std::string &name) A_WARN_UNUSED;
- MapInfo *getMapAtlas(const std::string &name) A_WARN_UNUSED;
+ const MapInfo *getMapAtlas(const std::string &name) A_WARN_UNUSED;
// Maps DB
typedef std::map<std::string, std::string> Maps;
@@ -66,6 +66,7 @@ namespace MapDB
// atlas to files map
typedef std::map<std::string, StringVect> Atlases;
typedef Atlases::iterator AtlasIter;
+ typedef Atlases::const_iterator AtlasCIter;
} // namespace MapDB
#endif