diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-01-14 11:27:36 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2019-01-30 19:43:32 +0300 |
commit | 856277bc4d9643f0c8a997e5c4895125db166755 (patch) | |
tree | 68d2064c681322d12f8cef9d0509004710872053 /indexer | |
parent | 4fa6e915bfab1502a765d4206acbbad94cc1ea2d (diff) |
Review fixes
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/ftypes_matcher.hpp | 8 |
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; } }; |