Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'search/v2/mwm_context.cpp')
-rw-r--r--search/v2/mwm_context.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/search/v2/mwm_context.cpp b/search/v2/mwm_context.cpp
index c574fe0d32..b6b6a053c6 100644
--- a/search/v2/mwm_context.cpp
+++ b/search/v2/mwm_context.cpp
@@ -1,6 +1,5 @@
#include "search/v2/mwm_context.hpp"
-#include "indexer/index.hpp"
namespace search
{
@@ -9,14 +8,11 @@ namespace v2
MwmContext::MwmContext(MwmSet::MwmHandle handle)
: m_handle(move(handle))
, m_value(*m_handle.GetValue<MwmValue>())
- , m_id(m_handle.GetId())
, m_vector(m_value.m_cont, m_value.GetHeader(), m_value.m_table)
, m_index(m_value.m_cont.GetReader(INDEX_FILE_TAG), m_value.m_factory)
{
}
-string const & MwmContext::GetName() const { return m_id.GetInfo()->GetCountryName(); }
-
-shared_ptr<MwmInfo> const & MwmContext::GetInfo() const { return m_id.GetInfo(); }
+shared_ptr<MwmInfo> const & MwmContext::GetInfo() const { return GetId().GetInfo(); }
} // namespace v2
} // namespace search