diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-08-21 13:37:44 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:02:09 +0300 |
commit | a75dbec3831cae0b4b05cc45b81822d0d9f014a6 (patch) | |
tree | 2678b53a1d730b2e17cd8fad4003f4cdec03188a /search/query_saver.hpp | |
parent | c9b9ebc2569d079fe44cd2ef16b6909f12fb0301 (diff) |
PR fixes.
Diffstat (limited to 'search/query_saver.hpp')
-rw-r--r-- | search/query_saver.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/search/query_saver.hpp b/search/query_saver.hpp index 2d4071d8f0..78d858c113 100644 --- a/search/query_saver.hpp +++ b/search/query_saver.hpp @@ -9,16 +9,16 @@ class QuerySaver { public: QuerySaver(); - void SaveNewQuery(string const & query); + void Add(string const & query); /// Returns several last saved queries from newest to oldest query. /// @see kMaxSuggestCount in implementation file. - list<string> const & GetTopQueries() const { return m_topQueries; } + list<string> const & Get() const { return m_topQueries; } /// Clear last queries storage. All data will be lost. void Clear(); private: friend void UnitTest_QuerySaverSerializerTest(); - void Serialize(vector<char> & data) const; + void Serialize(vector<uint8_t> & data) const; void Deserialize(string const & data); void Save(); @@ -26,4 +26,4 @@ private: list<string> m_topQueries; }; -} // namespace seatch +} // namespace search |