diff options
author | vng <viktor.govako@gmail.com> | 2012-06-23 05:23:12 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:40:13 +0300 |
commit | d907bcc454b0cd6a5a32a7a831cf4eaed83d934f (patch) | |
tree | 68fa675ebf474e3b4dcbc0b9e2de4ab62dc3a709 /indexer/mwm_set.hpp | |
parent | 92236836ac5f64bf43556850b599daf5d0d06d17 (diff) |
Fix bug with adding invalid mwm file to maps container in MwmSet.
Diffstat (limited to 'indexer/mwm_set.hpp')
-rw-r--r-- | indexer/mwm_set.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp index 489fdceb2d..00235b7604 100644 --- a/indexer/mwm_set.hpp +++ b/indexer/mwm_set.hpp @@ -9,13 +9,15 @@ #include "../std/vector.hpp" -// Information about stored mwm. +/// Information about stored mwm. class MwmInfo { public: - m2::RectD m_limitRect; // Limit rect of mwm. - uint8_t m_minScale; // Min zoom level of mwm. - uint8_t m_maxScale; // Max zoom level of mwm. + MwmInfo(); + + m2::RectD m_limitRect; ///< Limit rect of mwm. + uint8_t m_minScale; ///< Min zoom level of mwm. + uint8_t m_maxScale; ///< Max zoom level of mwm. // Does this MwmInfo represent a valid Mwm? inline bool isValid() const { return (m_status == STATUS_ACTIVE); } @@ -25,8 +27,8 @@ private: friend class MwmSet; enum Status { STATUS_ACTIVE = 0, STATUS_TO_REMOVE = 1, STATUS_REMOVED = 2 }; - uint8_t m_lockCount; // Number of locks. - uint8_t m_status; // + uint8_t m_lockCount; ///< Number of locks. + uint8_t m_status; ///< Current country status. }; class MwmSet |