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:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2019-04-23 11:44:49 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2019-04-23 13:55:47 +0300
commit88c01d55554273f2035bb93ea116f1c2d1b7e649 (patch)
tree5aa4645d8f5488817952ba83ca72737dcf006e35 /routing
parent65dca33c34d9951a027127462710a0fbda98ec4b (diff)
[base] Replaced base::Key to base::Value as in fact it's a value
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;