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 'feature_list/feature_list.cpp')
-rw-r--r--feature_list/feature_list.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/feature_list/feature_list.cpp b/feature_list/feature_list.cpp
index 0ef127a163..022515d20a 100644
--- a/feature_list/feature_list.cpp
+++ b/feature_list/feature_list.cpp
@@ -178,7 +178,7 @@ class Processor
search::LocalityFinder m_finder;
public:
- Processor(DataSourceBase const & dataSource)
+ Processor(DataSource const & dataSource)
: m_geocoder(dataSource)
, m_boundariesTable(dataSource)
, m_villagesCache(m_cancellable)
@@ -324,7 +324,7 @@ int main(int argc, char ** argv)
classificator::Load();
classif().SortClassificator();
- DataSource dataSource;
+ DataSource dataSource(make_unique<FeatureSourceFactory>());
vector<platform::LocalCountryFile> mwms;
platform::FindAllLocalMapsAndCleanup(numeric_limits<int64_t>::max() /* the latest version */,
mwms);
@@ -353,7 +353,7 @@ int main(int argc, char ** argv)
map<uint32_t, osm::Id> featureIdToOsmId;
ParseFeatureIdToOsmIdMapping(osmToFeatureFile, featureIdToOsmId);
MwmSet::MwmId mwmId(mwmInfo);
- DataSource::FeaturesLoaderGuard loader(dataSource, mwmId);
+ DataSource::FeaturesLoaderGuard loader(dataSource, mwmId, FeatureSourceFactory());
for (uint32_t ftIndex = 0; ftIndex < loader.GetNumFeatures(); ftIndex++)
{
FeatureType ft;