diff options
author | Maxim Pimenov <m@maps.me> | 2016-07-07 13:47:38 +0300 |
---|---|---|
committer | Maxim Pimenov <m@maps.me> | 2016-07-07 13:48:22 +0300 |
commit | c8054c1939c10cf9c537dc60903d89d33975cd83 (patch) | |
tree | fe7e0789eb2ee3f0b94180d7a8269f5368d05fad /search/ranker.hpp | |
parent | ad44499b38ba56ae87e788f1da3c3b54e58718b1 (diff) |
Review fixes.
Diffstat (limited to 'search/ranker.hpp')
-rw-r--r-- | search/ranker.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/search/ranker.hpp b/search/ranker.hpp index 0bf29fd8ef..c97b1c72c3 100644 --- a/search/ranker.hpp +++ b/search/ranker.hpp @@ -68,6 +68,8 @@ public: CategoriesHolder const & categories, vector<Suggest> const & suggests, my::Cancellable const & cancellable); + void Init(Params const & params); + bool IsResultExists(PreResult2 const & p, vector<IndexedValue> const & values); void MakePreResult2(Geocoder::Params const & params, vector<IndexedValue> & cont, @@ -86,8 +88,7 @@ public: void FlushResults(Geocoder::Params const & geocoderParams, Results & res, size_t resCount); void FlushViewportResults(Geocoder::Params const & geocoderParams, Results & res); - void SetParams(Params const & params) { m_params = params; } - void SetPreResults1(vector<PreResult1> * preResults1) { m_preResults1 = preResults1; } + void SetPreResults1(vector<PreResult1> && preResults1) { m_preResults1 = move(preResults1); } void ClearCaches(); #ifdef FIND_LOCALITY_TEST @@ -134,6 +135,6 @@ private: CategoriesHolder const & m_categories; vector<Suggest> const & m_suggests; - vector<PreResult1> * m_preResults1 = nullptr; + vector<PreResult1> m_preResults1; }; } // namespace search |