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>2018-12-11 12:49:16 +0300
committermpimenov <mpimenov@users.noreply.github.com>2018-12-12 14:58:28 +0300
commitc8d89fb3c9997537ac6b89e878787c7052d8dc2c (patch)
treed158ff1258de24dfd8c2178b9f2ade04f065b7d0 /indexer
parentca77773e9303ef848be757a1c806ded75f2ab377 (diff)
[generator] Fixed description section builder tests
Diffstat (limited to 'indexer')
-rw-r--r--indexer/ftypes_matcher.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index 9774074d0f..a2209ed3ee 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -170,6 +170,17 @@ public:
static std::set<std::pair<std::string, std::string>> const kTypesForWiki;
DECLARE_CHECKER_INSTANCE(WikiChecker);
+
+ template <typename Ft>
+ bool NeedFeature(Ft & feature) const
+ {
+ bool need = true;
+ feature.ForEachType([&](uint32_t type) {
+ if (need && !IsMatched(type))
+ need = false;
+ });
+ return need;
+ }
};
class IsPlaceChecker : public BaseChecker