diff options
Diffstat (limited to 'search/downloader_search_callback.cpp')
-rw-r--r-- | search/downloader_search_callback.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/search/downloader_search_callback.cpp b/search/downloader_search_callback.cpp index a965aaf065..6ad12a7f75 100644 --- a/search/downloader_search_callback.cpp +++ b/search/downloader_search_callback.cpp @@ -2,7 +2,9 @@ #include "search/result.hpp" -#include "editor/editable_data_source.hpp" +#include "editor/editable_feature_source.hpp" + +#include "indexer/data_source.hpp" #include "storage/country_info_getter.hpp" #include "storage/storage.hpp" @@ -35,7 +37,8 @@ bool GetGroupCountryIdFromFeature(storage::Storage const & storage, FeatureType namespace search { -DownloaderSearchCallback::DownloaderSearchCallback(Delegate & delegate, DataSourceBase const & dataSource, +DownloaderSearchCallback::DownloaderSearchCallback(Delegate & delegate, + DataSource const & dataSource, storage::CountryInfoGetter const & infoGetter, storage::Storage const & storage, storage::DownloaderSearchParams params) @@ -60,7 +63,8 @@ void DownloaderSearchCallback::operator()(search::Results const & results) if (result.GetResultType() != search::Result::Type::LatLon) { FeatureID const & fid = result.GetFeatureID(); - EditableDataSource::FeaturesLoaderGuard loader(m_dataSource, fid.m_mwmId); + DataSource::FeaturesLoaderGuard loader(m_dataSource, fid.m_mwmId, + EditableFeatureSourceFactory()); FeatureType ft; if (!loader.GetFeatureByIndex(fid.m_index, ft)) { |