diff --git a/indexer/ftypes_matcher.cpp b/indexer/ftypes_matcher.cpp index 53274dda05..6c4da86fe1 100644 --- a/indexer/ftypes_matcher.cpp +++ b/indexer/ftypes_matcher.cpp @@ -8,6 +8,12 @@ namespace ftypes { +uint32_t BaseChecker::PrepareFeatureTypeToMatch(uint32_t featureType) +{ + ftype::TruncValue(featureType, 2); + return featureType; +} + bool BaseChecker::IsMatched(uint32_t t) const { ftype::TruncValue(t, 2); diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp index 5bce2f743c..84dd84eff0 100644 --- a/indexer/ftypes_matcher.hpp +++ b/indexer/ftypes_matcher.hpp @@ -22,6 +22,8 @@ public: bool operator() (feature::TypesHolder const & types) const; bool operator() (FeatureType const & ft) const; bool operator() (vector const & types) const; + + static uint32_t PrepareFeatureTypeToMatch(uint32_t featureType); }; class IsStreetChecker : public BaseChecker