diff options
author | vng <viktor.govako@gmail.com> | 2015-08-13 15:33:04 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:01:30 +0300 |
commit | 93a3c2cfb8b7762e823f42da07f1262c8f012a03 (patch) | |
tree | 585c4a092f7718f391543fc6cd3d54f7f6ff857b /indexer/index.cpp | |
parent | 57c1e9741fb23d11bf1ea1b020001a01b75b26fc (diff) |
Mwm set public interface corrections.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r-- | indexer/index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp index e384ab973b..f8adf0c82d 100644 --- a/indexer/index.cpp +++ b/indexer/index.cpp @@ -88,7 +88,7 @@ void Index::OnMwmDeregistered(LocalCountryFile const & localFile) ////////////////////////////////////////////////////////////////////////////////// Index::FeaturesLoaderGuard::FeaturesLoaderGuard(Index const & parent, MwmId id) - : m_handle(const_cast<Index &>(parent), id), + : m_handle(parent.GetMwmHandleById(id)), /// @note This guard is suitable when mwm is loaded m_vector(m_handle.GetValue<MwmValue>()->m_cont, m_handle.GetValue<MwmValue>()->GetHeader(), @@ -100,7 +100,7 @@ string Index::FeaturesLoaderGuard::GetCountryFileName() const { if (!m_handle.IsAlive()) return string(); - return m_handle.GetValue<MwmValue>()->GetCountryFile().GetNameWithoutExt(); + return m_handle.GetValue<MwmValue>()->GetCountryFileName(); } bool Index::FeaturesLoaderGuard::IsWorld() const |