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:
authorAlex Zolotarev <alex@maps.me>2016-01-18 19:20:30 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:14:14 +0300
commit65fb91232602e20b67bbc78b14662bb8803eb73f (patch)
tree7855e6685ce0c557ec48630ebb2f92efdda12b78 /indexer/index.cpp
parent50cc83aefcdd1a6c40a139026f4c02034909e60a (diff)
Avoid copy-paste.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r--indexer/index.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp
index 7d6e4f6d4a..3110b8a08a 100644
--- a/indexer/index.cpp
+++ b/indexer/index.cpp
@@ -123,15 +123,11 @@ void Index::FeaturesLoaderGuard::GetFeatureByIndex(uint32_t index, FeatureType &
ASSERT_NOT_EQUAL(osm::Editor::FeatureStatus::Deleted, m_editor.GetFeatureStatus(id, index),
("Deleted feature was cached. Please review your code."));
if (!m_editor.Instance().GetEditedFeature(id, index, ft))
- {
- m_vector.GetByIndex(index, ft);
- ft.SetID(FeatureID(id, index));
- }
+ GetOriginalFeatureByIndex(index, ft);
}
void Index::FeaturesLoaderGuard::GetOriginalFeatureByIndex(uint32_t index, FeatureType & ft) const
{
- MwmId const & id = m_handle.GetId();
m_vector.GetByIndex(index, ft);
- ft.SetID(FeatureID(id, index));
+ ft.SetID(FeatureID(m_handle.GetId(), index));
}