diff options
author | Sergey Yershov <syershov@maps.me> | 2018-06-18 11:39:14 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-06-22 12:22:30 +0300 |
commit | 37d3d2f748769f024a0e6b8a969822746de93971 (patch) | |
tree | 2e4dec2e01a056f5d03a9e91a3f3e8ac15cc777e /openlr/road_info_getter.cpp | |
parent | c92fe0a11d20e99ae47c723a2746d44d304a5cd0 (diff) |
[indexer][editor] Refactor Index into DataSource
Remove namespace datasource
Diffstat (limited to 'openlr/road_info_getter.cpp')
-rw-r--r-- | openlr/road_info_getter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openlr/road_info_getter.cpp b/openlr/road_info_getter.cpp index 859cf0f8aa..67ee14b06c 100644 --- a/openlr/road_info_getter.cpp +++ b/openlr/road_info_getter.cpp @@ -2,7 +2,7 @@ #include "indexer/classificator.hpp" #include "indexer/feature.hpp" -#include "indexer/index.hpp" +#include "indexer/data_source.hpp" #include "base/assert.hpp" @@ -10,7 +10,7 @@ namespace openlr { -RoadInfoGetter::RoadInfoGetter(Index const & index) : m_index(index), m_c(classif()) {} +RoadInfoGetter::RoadInfoGetter(DataSourceBase const & index) : m_index(index), m_c(classif()) {} RoadInfoGetter::RoadInfo RoadInfoGetter::Get(FeatureID const & fid) { @@ -18,7 +18,7 @@ RoadInfoGetter::RoadInfo RoadInfoGetter::Get(FeatureID const & fid) if (it != end(m_cache)) return it->second; - Index::FeaturesLoaderGuard g(m_index, fid.m_mwmId); + DataSource::FeaturesLoaderGuard g(m_index, fid.m_mwmId); FeatureType ft; CHECK(g.GetOriginalFeatureByIndex(fid.m_index, ft), ()); |