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:
authorYury Melnichek <melnichek@gmail.com>2011-09-24 17:17:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:24:21 +0300
commit96ada7302028d6ece6bed1958b44f7f90f5be2f7 (patch)
treea66b7393153fe88babf2722d562a9b5c0beb1b50 /indexer/scale_index.hpp
parent6368e0e6dcaf3fc636b6a8b629c213199c82f8cf (diff)
Minor optimization in ForEachInIntervalAndScale().
Diffstat (limited to 'indexer/scale_index.hpp')
-rw-r--r--indexer/scale_index.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indexer/scale_index.hpp b/indexer/scale_index.hpp
index 826bb22f2d..ca9286e632 100644
--- a/indexer/scale_index.hpp
+++ b/indexer/scale_index.hpp
@@ -11,7 +11,6 @@
#include "../base/stl_add.hpp"
#include "../std/algorithm.hpp"
-#include "../std/bind.hpp"
class ScaleIndexBase
@@ -94,8 +93,11 @@ public:
{
size_t const scaleBucket = BucketByScale(scale);
if (scaleBucket < m_IndexForScale.size())
+ {
+ IntervalIndexIFace::FunctionT f1(f);
for (size_t i = 0; i <= scaleBucket; ++i)
- m_IndexForScale[i]->DoForEach(bind<void>(ref(f), _1), beg, end);
+ m_IndexForScale[i]->DoForEach(f1, beg, end);
+ }
}
private: