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-11 13:56:22 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-01-30 19:43:32 +0300
commit4fa6e915bfab1502a765d4206acbbad94cc1ea2d (patch)
tree4bfe32b6d18c21f124e098b2313f83b8ae238235 /indexer
parent4cdf39a3268c4a90043055653af8ba4b78867137 (diff)
[generator] Fixed logic error in WikiChecker::NeedFeature.
Diffstat (limited to 'indexer')
-rw-r--r--indexer/ftypes_matcher.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index 018d0ed932..150e3b4b9b 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -204,10 +204,10 @@ public:
{
bool need = true;
feature.ForEachType([&](uint32_t type) {
- if (need && !IsMatched(type))
+ if (need && IsMatched(type))
need = false;
});
- return need;
+ return !need;
}
};