From aee31d733537c9ba96e714a49d13617f9c87f537 Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Mon, 3 Jun 2024 20:50:32 +0200 Subject: [PATCH] style fixes --- keyvi/include/keyvi/dictionary/dictionary.h | 4 ++-- keyvi/include/keyvi/dictionary/matching/near_matching.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/keyvi/include/keyvi/dictionary/dictionary.h b/keyvi/include/keyvi/dictionary/dictionary.h index 2de79775a..e78bee93c 100644 --- a/keyvi/include/keyvi/dictionary/dictionary.h +++ b/keyvi/include/keyvi/dictionary/dictionary.h @@ -347,8 +347,8 @@ class Dictionary final { return MatchIterator::MakeIteratorPair(tfunc, std::move(first_match)); } - MatchIterator::MatchIteratorPair GetNear(const uint64_t state, const std::string& key, const size_t minimum_prefix_length, - const bool greedy = false) const { + MatchIterator::MatchIteratorPair GetNear(const uint64_t state, const std::string& key, + const size_t minimum_prefix_length, const bool greedy = false) const { auto data = std::make_shared>( matching::NearMatching<>::FromSingleFsa(fsa_, state, key, minimum_prefix_length, greedy)); diff --git a/keyvi/include/keyvi/dictionary/matching/near_matching.h b/keyvi/include/keyvi/dictionary/matching/near_matching.h index 92705b910..c279d6521 100644 --- a/keyvi/include/keyvi/dictionary/matching/near_matching.h +++ b/keyvi/include/keyvi/dictionary/matching/near_matching.h @@ -146,6 +146,7 @@ class NearMatching final { return match_t(); } + private: std::unique_ptr traverser_ptr_; const std::string exact_prefix_;