Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'search/search_quality/search_quality_tool/search_quality_tool.cpp')
-rw-r--r--search/search_quality/search_quality_tool/search_quality_tool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/search/search_quality/search_quality_tool/search_quality_tool.cpp b/search/search_quality/search_quality_tool/search_quality_tool.cpp
index 2a93578cd1..2e934bb165 100644
--- a/search/search_quality/search_quality_tool/search_quality_tool.cpp
+++ b/search/search_quality/search_quality_tool/search_quality_tool.cpp
@@ -197,8 +197,8 @@ void Split(string const & s, char delim, vector<string> & parts)
// Returns the position of the result that is expected to be found by geocoder completeness
// tests in the |result| vector or -1 if it does not occur there.
-int FindResult(DataSourceBase & dataSource, string const & mwmName, uint32_t const featureId, double const lat,
- double const lon, vector<Result> const & results)
+int FindResult(DataSource & dataSource, string const & mwmName, uint32_t const featureId,
+ double const lat, double const lon, vector<Result> const & results)
{
CHECK_LESS_OR_EQUAL(results.size(), numeric_limits<int>::max(), ());
auto const mwmId = dataSource.GetMwmIdByCountryFile(platform::CountryFile(mwmName));
@@ -279,7 +279,7 @@ void ParseCompletenessQuery(string & s, CompletenessQuery & q)
// from |path|, executes them against the |engine| with viewport set to |viewport|
// and reports the number of queries whose expected result is among the returned results.
// Exact feature id is expected, but a close enough (lat, lon) is good too.
-void CheckCompleteness(string const & path, m2::RectD const & viewport, DataSourceBase & dataSource,
+void CheckCompleteness(string const & path, m2::RectD const & viewport, DataSource & dataSource,
TestSearchEngine & engine)
{
my::ScopedLogAbortLevelChanger const logAbortLevel(LCRITICAL);
@@ -379,7 +379,7 @@ int main(int argc, char * argv[])
params.m_locale = FLAGS_locale;
params.m_numThreads = FLAGS_num_threads;
- DataSource dataSource;
+ DataSource dataSource(make_unique<FeatureSourceFactory>());
vector<platform::LocalCountryFile> mwms;
if (!FLAGS_mwm_list_path.empty())