From cf79b26f999ddd795a54b553af3fdb553ec04536 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Apr 2013 00:34:53 +0300 Subject: improve mapdb file. --- src/resources/mapdb.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/resources/mapdb.h') 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 Maps; @@ -66,6 +66,7 @@ namespace MapDB // atlas to files map typedef std::map Atlases; typedef Atlases::iterator AtlasIter; + typedef Atlases::const_iterator AtlasCIter; } // namespace MapDB #endif -- cgit v1.2.3-70-g09d2