diff --git a/platform/mwm_traits.cpp b/platform/mwm_traits.cpp index f066ffa03a..f832ead28d 100644 --- a/platform/mwm_traits.cpp +++ b/platform/mwm_traits.cpp @@ -8,24 +8,24 @@ MwmTraits::MwmTraits(MwmVersion const & version) : m_version(version) {} MwmTraits::SearchIndexFormat MwmTraits::GetSearchIndexFormat() const { - if (m_version.GetFormat() < version::Format::v7) + if (GetFormat() < version::Format::v7) return SearchIndexFormat::FeaturesWithRankAndCenter; return SearchIndexFormat::CompressedBitVector; } MwmTraits::HouseToStreetTableFormat MwmTraits::GetHouseToStreetTableFormat() const { - if (m_version.GetFormat() < version::Format::v7) + if (GetFormat() < version::Format::v7) return HouseToStreetTableFormat::Unknown; return HouseToStreetTableFormat::Fixed3BitsDDVector; } -bool MwmTraits::HasOffsetsTable() const { return m_version.GetFormat() >= version::Format::v6; } +bool MwmTraits::HasOffsetsTable() const { return GetFormat() >= version::Format::v6; } bool MwmTraits::HasRoutingIndex() const { uint32_t constexpr kFirstVersionWithRoutingIndex = 161206; - return m_version.GetVersion() >= kFirstVersionWithRoutingIndex; + return GetVersion() >= kFirstVersionWithRoutingIndex; } string DebugPrint(MwmTraits::SearchIndexFormat format) diff --git a/platform/mwm_traits.hpp b/platform/mwm_traits.hpp index 3b74ebdb78..2663acd462 100644 --- a/platform/mwm_traits.hpp +++ b/platform/mwm_traits.hpp @@ -51,6 +51,9 @@ public: bool HasRoutingIndex() const; private: + Format GetFormat() const { return m_version.GetFormat(); } + uint32_t GetVersion() const { return m_version.GetVersion(); } + MwmVersion m_version; };