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 'routing')
-rw-r--r--routing/routing_quality/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/routing/routing_quality/utils.cpp b/routing/routing_quality/utils.cpp
index cbf9657350..cc55ab4e9c 100644
--- a/routing/routing_quality/utils.cpp
+++ b/routing/routing_quality/utils.cpp
@@ -53,7 +53,7 @@ public:
return infoGetter.GetLimitRectForLeaf(countryId);
};
- auto const index = base::Key(type);
+ auto const index = base::Underlying(type);
if (!m_routers[index])
{
m_routers[index] = make_unique<IndexRouter>(type, false /* load altitudes */, *m_cpg,
@@ -95,7 +95,7 @@ private:
FrozenDataSource m_dataSource;
shared_ptr<NumMwmIds> m_numMwmIds = make_shared<NumMwmIds>();
- array<unique_ptr<IndexRouter>, base::Key(VehicleType::Count)> m_routers{};
+ array<unique_ptr<IndexRouter>, base::Underlying(VehicleType::Count)> m_routers{};
unique_ptr<storage::CountryParentGetter> m_cpg = make_unique<storage::CountryParentGetter>();
unique_ptr<storage::CountryInfoGetter> m_cig = storage::CountryInfoReader::CreateCountryInfoReader(GetPlatform());
traffic::TrafficCache m_trafficCache;