From bc4f0d37b768db7aa129973cb65a8b3895af1005 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Thu, 3 Dec 2015 18:46:08 +0300 Subject: [PATCH] Minor const fix. --- indexer/index.cpp | 2 +- indexer/index.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indexer/index.cpp b/indexer/index.cpp index 90a6139419..cf03bfce3f 100644 --- a/indexer/index.cpp +++ b/indexer/index.cpp @@ -117,7 +117,7 @@ bool Index::FeaturesLoaderGuard::IsWorld() const return m_handle.GetValue()->GetHeader().GetType() == feature::DataHeader::world; } -void Index::FeaturesLoaderGuard::GetFeatureByIndex(uint32_t index, FeatureType & ft) +void Index::FeaturesLoaderGuard::GetFeatureByIndex(uint32_t index, FeatureType & ft) const { m_vector.GetByIndex(index, ft); ft.SetID(FeatureID(m_handle.GetId(), index)); diff --git a/indexer/index.hpp b/indexer/index.hpp index d27f2c9d76..5e01ce068a 100644 --- a/indexer/index.hpp +++ b/indexer/index.hpp @@ -249,7 +249,7 @@ public: inline MwmSet::MwmId GetId() const { return m_handle.GetId(); } string GetCountryFileName() const; bool IsWorld() const; - void GetFeatureByIndex(uint32_t index, FeatureType & ft); + void GetFeatureByIndex(uint32_t index, FeatureType & ft) const; inline FeaturesVector const & GetFeaturesVector() const { return m_vector; } private: