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:
authorvng <viktor.govako@gmail.com>2015-03-21 12:55:05 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:57:09 +0300
commit792311a255f844b940fee3ade42fda4195cbaa0f (patch)
tree58314904937f4b7fdf2ac2e4e675d84e98790203 /indexer/scale_index.hpp
parentb7e5bc5301e1563664028677d36711a4a0872fee (diff)
Feature index refactoring.
Diffstat (limited to 'indexer/scale_index.hpp')
-rw-r--r--indexer/scale_index.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/scale_index.hpp b/indexer/scale_index.hpp
index 807662f0d8..76674f2272 100644
--- a/indexer/scale_index.hpp
+++ b/indexer/scale_index.hpp
@@ -54,12 +54,12 @@ public:
}
template <typename F>
- void ForEachInIntervalAndScale(F & f, uint64_t beg, uint64_t end, uint32_t scale) const
+ void ForEachInIntervalAndScale(F const & f, uint64_t beg, uint64_t end, uint32_t scale) const
{
size_t const scaleBucket = BucketByScale(scale);
if (scaleBucket < m_IndexForScale.size())
{
- IntervalIndexIFace::FunctionT f1(ref(f));
+ IntervalIndexIFace::FunctionT f1(cref(f));
for (size_t i = 0; i <= scaleBucket; ++i)
m_IndexForScale[i]->DoForEach(f1, beg, end);
}