Skip to content

Commit

Permalink
[routing] Fix searching closest camera on route + hightliting
Browse files Browse the repository at this point in the history
  • Loading branch information
gmoryes authored and bykoianko committed Feb 22, 2019
1 parent e56537d commit d944062
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions indexer/ftypes_matcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,20 @@ class WikiChecker : public BaseChecker
{
WikiChecker();
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 = false;
feature.ForEachType([&](uint32_t type) {
if (!need && IsMatched(type))
need = true;
});
return need;
}
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 = false;
feature.ForEachType([&](uint32_t type) {
if (!need && IsMatched(type))
need = true;
});
return need;
}
};

class IsPlaceChecker : public BaseChecker
Expand Down

0 comments on commit d944062

Please sign in to comment.