From 0869b15dcd1bab2c6b1c8721efc9078b17bcc98b Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Fri, 26 Jul 2024 19:44:11 +0200 Subject: [PATCH] [search] Store 50 recent searches instead of 10 Signed-off-by: Alexander Borsuk --- search/query_saver.cpp | 2 +- search/query_saver.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/search/query_saver.cpp b/search/query_saver.cpp index aee39e8bd5..71d1a0f9a1 100644 --- a/search/query_saver.cpp +++ b/search/query_saver.cpp @@ -22,7 +22,7 @@ namespace { char constexpr kSettingsKey[] = "UserQueries"; using Length = uint16_t; -Length constexpr kMaxSuggestionsCount = 10; +Length constexpr kMaxSuggestionsCount = 50; // Reader from memory that throws exceptions. class SecureMemReader : public Reader diff --git a/search/query_saver.hpp b/search/query_saver.hpp index 6808ed5336..ae0230300f 100644 --- a/search/query_saver.hpp +++ b/search/query_saver.hpp @@ -19,7 +19,7 @@ public: void Add(SearchRequest const & query); /// Returns several last saved queries from newest to oldest query. - /// @see kMaxSuggestCount in implementation file. + /// @see kMaxSuggestionsCount in implementation file. std::list const & Get() const { return m_topQueries; } /// Clear last queries storage. All data will be lost.