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 16:47:18 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2018-06-27 19:20:52 +0300
commit767dc57bd60633d6b94bbe7dda5ee3ab887aa0d6 (patch)
tree8f3cfe78441c2f96d2a90576d746f83b5cf621cf /routing/features_road_graph.cpp
parent68bfbad5eef3ed2645b60fecbc74121487900bbf (diff)
[index] Classes for Frozen and Editable DataSources
Diffstat (limited to 'routing/features_road_graph.cpp')
-rw-r--r--routing/features_road_graph.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/routing/features_road_graph.cpp b/routing/features_road_graph.cpp
index c2456ecd05..9441ce2957 100644
--- a/routing/features_road_graph.cpp
+++ b/routing/features_road_graph.cpp
@@ -4,10 +4,9 @@
#include "routing_common/vehicle_model.hpp"
-#include "editor/editable_feature_source.hpp"
+#include "editor/editable_data_source.hpp"
#include "indexer/classificator.hpp"
-#include "indexer/data_source.hpp"
#include "indexer/ftypes_matcher.hpp"
#include "indexer/scales.hpp"
@@ -206,8 +205,7 @@ void FeaturesRoadGraph::FindClosestEdges(m2::PointD const & point, uint32_t coun
void FeaturesRoadGraph::GetFeatureTypes(FeatureID const & featureId, feature::TypesHolder & types) const
{
FeatureType ft;
- DataSource::FeaturesLoaderGuard loader(m_dataSource, featureId.m_mwmId,
- EditableFeatureSourceFactory::Get());
+ EditableFeaturesLoaderGuard loader(m_dataSource, featureId.m_mwmId);
if (!loader.GetFeatureByIndex(featureId.m_index, ft))
return;
@@ -308,8 +306,7 @@ IRoadGraph::RoadInfo const & FeaturesRoadGraph::GetCachedRoadInfo(FeatureID cons
FeatureType ft;
- DataSource::FeaturesLoaderGuard loader(m_dataSource, featureId.m_mwmId,
- EditableFeatureSourceFactory::Get());
+ EditableFeaturesLoaderGuard loader(m_dataSource, featureId.m_mwmId);
if (!loader.GetFeatureByIndex(featureId.m_index, ft))
return ri;