diff options
author | vng <viktor.govako@gmail.com> | 2015-03-21 12:55:05 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:09 +0300 |
commit | 792311a255f844b940fee3ade42fda4195cbaa0f (patch) | |
tree | 58314904937f4b7fdf2ac2e4e675d84e98790203 /indexer/index.cpp | |
parent | b7e5bc5301e1563664028677d36711a4a0872fee (diff) |
Feature index refactoring.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r-- | indexer/index.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp index edba96bef6..ac01d91f14 100644 --- a/indexer/index.cpp +++ b/indexer/index.cpp @@ -2,10 +2,12 @@ #include "platform/platform.hpp" -#include "base/logging.hpp" #include "coding/file_name_utils.hpp" #include "coding/internal/file_data.hpp" +#include "base/logging.hpp" + + using platform::CountryFile; using platform::LocalCountryFile; @@ -91,8 +93,8 @@ bool Index::FeaturesLoaderGuard::IsWorld() const return m_handle.GetValue<MwmValue>()->GetHeader().GetType() == feature::DataHeader::world; } -void Index::FeaturesLoaderGuard::GetFeature(uint32_t offset, FeatureType & ft) +void Index::FeaturesLoaderGuard::GetFeatureByIndex(uint32_t ind, FeatureType & ft) { - m_vector.Get(offset, ft); - ft.SetID(FeatureID(m_handle.GetId(), offset)); + m_vector.GetByIndex(ind, ft); + ft.SetID(FeatureID(m_handle.GetId(), ind)); } |