Review fixes.

This commit is contained in:
Maxim Pimenov 2016-07-08 15:14:31 +03:00
parent d94908e979
commit d93851e0cd
3 changed files with 6 additions and 6 deletions

View file

@ -406,7 +406,7 @@ void Processor::Search(SearchParams const & params, m2::RectD const & viewport)
SetOnResults(params.m_onResults);
Geocoder::Params geocoderParams;
InitGeocoderParams(geocoderParams);
InitGeocoder(geocoderParams);
InitPreRanker();
InitRanker();
@ -668,7 +668,7 @@ void Processor::InitParams(QueryParams & params)
params.m_langs.insert(GetLanguage(i));
}
void Processor::InitGeocoderParams(Geocoder::Params & params)
void Processor::InitGeocoder(Geocoder::Params & params)
{
bool const viewportSearch = m_mode == Mode::Viewport;
@ -699,11 +699,11 @@ void Processor::InitRanker()
if (viewportSearch)
{
params.m_viewport = GetViewport();
params.m_limit = kResultsCount;
params.m_limit = kPreResultsCount;
}
else
{
params.m_limit = numeric_limits<size_t>::max();
params.m_limit = kResultsCount;
}
params.m_position = GetPosition();
params.m_pivotRegion = GetPivotRegion();

View file

@ -98,7 +98,7 @@ public:
void SearchCoordinates(Results & res) const;
void InitParams(QueryParams & params);
void InitGeocoderParams(Geocoder::Params & params);
void InitGeocoder(Geocoder::Params & params);
void InitPreRanker();
void InitRanker();

View file

@ -65,7 +65,7 @@ public:
TLocales m_categoryLocales;
size_t m_limit;
size_t m_limit = 0;
TOnResults m_onResults;
};