/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
android-95
indexer/utils.cpp
28 строк
623 B
Maxim Pimenov
[indexer] [search] Moved FindWorld from search/ to indexer/.
27 июн 2019, 15:41
27 июн 2019, 15:41
5156f04
Код
Авторство
О чём код?
#include "indexer/utils.hpp" using namespace std; namespace indexer { MwmSet::MwmHandle FindWorld(DataSource const & dataSource, vector<shared_ptr<MwmInfo>> const & infos) { MwmSet::MwmHandle handle; for (auto const & info : infos) { if (info->GetType() == MwmInfo::WORLD) { handle = dataSource.GetMwmHandleById(MwmSet::MwmId(info)); break; } } return handle; } MwmSet::MwmHandle FindWorld(DataSource const & dataSource) { vector<shared_ptr<MwmInfo>> infos; dataSource.GetMwmsInfo(infos); return FindWorld(dataSource, infos); } } // namespace indexer