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:
authortatiana-yan <tatiana.kondakova@gmail.com>2018-06-26 13:35:47 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2018-06-27 19:20:52 +0300
commit68bfbad5eef3ed2645b60fecbc74121487900bbf (patch)
treebbfa7c4e1783668c56e83245ccd0b14e62433a92 /openlr/openlr_tests/decoded_path_test.cpp
parent570b2b0b35df1fad001460eccf35da31e334b8b0 (diff)
[indexer] DataSource unique_ptr<FeatureSourceFactory> -> FeatureSourceFactory const &
Diffstat (limited to 'openlr/openlr_tests/decoded_path_test.cpp')
-rw-r--r--openlr/openlr_tests/decoded_path_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/openlr/openlr_tests/decoded_path_test.cpp b/openlr/openlr_tests/decoded_path_test.cpp
index 01c12a4015..f052417a50 100644
--- a/openlr/openlr_tests/decoded_path_test.cpp
+++ b/openlr/openlr_tests/decoded_path_test.cpp
@@ -133,14 +133,15 @@ void WithRoad(vector<m2::PointD> const & points, Func && fn)
builder.Add(TestRoad(points, "Interstate 60", "en"));
}
- DataSource dataSource(make_unique<FeatureSourceFactory>());
+ DataSource dataSource(FeatureSourceFactory::Get());
auto const regResult = dataSource.RegisterMap(country);
TEST_EQUAL(regResult.second, MwmSet::RegResult::Success, ());
MwmSet::MwmHandle mwmHandle = dataSource.GetMwmHandleById(regResult.first);
TEST(mwmHandle.IsAlive(), ());
- DataSource::FeaturesLoaderGuard const guard(dataSource, regResult.first, FeatureSourceFactory());
+ DataSource::FeaturesLoaderGuard const guard(dataSource, regResult.first,
+ FeatureSourceFactory::Get());
FeatureType road;
TEST(guard.GetFeatureByIndex(0, road), ());
road.ParseEverything();