From a75dbec3831cae0b4b05cc45b81822d0d9f014a6 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Fri, 21 Aug 2015 13:37:44 +0300 Subject: PR fixes. --- map/framework.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'map/framework.hpp') diff --git a/map/framework.hpp b/map/framework.hpp index e407066188..91c5cc2e81 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -51,10 +51,11 @@ #include "base/strings_bundle.hpp" #include "base/thread_checker.hpp" -#include "std/vector.hpp" +#include "std/list.hpp" #include "std/shared_ptr.hpp" -#include "std/unique_ptr.hpp" #include "std/target_os.hpp" +#include "std/unique_ptr.hpp" +#include "std/vector.hpp" namespace search { @@ -347,8 +348,8 @@ public: bool IsISActive() const { return !m_lastSearch.m_query.empty(); } void CancelInteractiveSearch(); - vector const & GetLastSearchQueries() const { return m_searchQuerySaver.GetTopQueries(); } - void SaveSearchQuery(string const & query) { m_searchQuerySaver.SaveNewQuery(query); } + list const & GetLastSearchQueries() const { return m_searchQuerySaver.Get(); } + void SaveSearchQuery(string const & query) { m_searchQuerySaver.Add(query); } /// Calculate distance and direction to POI for the given position. /// @param[in] point POI's position; -- cgit v1.2.3