diff --git a/search/processor.cpp b/search/processor.cpp index 0e2e2c3ba8..4faa02552b 100644 --- a/search/processor.cpp +++ b/search/processor.cpp @@ -216,10 +216,8 @@ void Processor::SetViewport(m2::RectD const & viewport) if (m_viewport.IsValid()) { - double constexpr epsMeters = 10.0; - - // Skip if viewports are equal. - if (IsEqualMercator(m_viewport, viewport, epsMeters)) + double constexpr kEpsMeters = 10.0; + if (IsEqualMercator(m_viewport, viewport, kEpsMeters)) return; } diff --git a/search/processor.hpp b/search/processor.hpp index 22679c86f9..9af3178bb7 100644 --- a/search/processor.hpp +++ b/search/processor.hpp @@ -20,12 +20,15 @@ #include "indexer/rank_table.hpp" #include "indexer/string_slice.hpp" +#include "coding/multilang_utf8_string.hpp" + #include "geometry/rect2d.hpp" #include "base/cancellable.hpp" #include "base/limited_priority_queue.hpp" #include "base/string_utils.hpp" +#include "std/cstdint.hpp" #include "std/function.hpp" #include "std/map.hpp" #include "std/shared_ptr.hpp" @@ -86,8 +89,8 @@ public: inline m2::PointD const & GetPosition() const { return m_position; } /// Suggestions language code, not the same as we use in mwm data - int8_t m_inputLocaleCode; - int8_t m_currentLocaleCode; + int8_t m_inputLocaleCode = StringUtf8Multilang::kUnsupportedLanguageCode; + int8_t m_currentLocaleCode = StringUtf8Multilang::kUnsupportedLanguageCode; inline bool IsEmptyQuery() const { return (m_prefix.empty() && m_tokens.empty()); }