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:
authorMaksim Andrianov <maksimandrianov1@gmail.com>2019-01-14 11:27:36 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-01-30 19:43:32 +0300
commit856277bc4d9643f0c8a997e5c4895125db166755 (patch)
tree68d2064c681322d12f8cef9d0509004710872053 /indexer
parent4fa6e915bfab1502a765d4206acbbad94cc1ea2d (diff)
Review fixes
Diffstat (limited to 'indexer')
-rw-r--r--indexer/ftypes_matcher.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index 150e3b4b9b..c9e7fa6d87 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -202,12 +202,12 @@ public:
template <typename Ft>
bool NeedFeature(Ft & feature) const
{
- bool need = true;
+ bool need = false;
feature.ForEachType([&](uint32_t type) {
- if (need && IsMatched(type))
- need = false;
+ if (!need && IsMatched(type))
+ need = true;
});
- return !need;
+ return need;
}
};