From 666bf71c29afd56ad285f8d0fd882fc1ea79224a Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Thu, 14 Sep 2017 16:49:35 +0300 Subject: Review fixes. --- routing/index_router.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/routing/index_router.cpp b/routing/index_router.cpp index b65691c984..cf23fd57bf 100644 --- a/routing/index_router.cpp +++ b/routing/index_router.cpp @@ -283,10 +283,10 @@ double IndexRouter::BestEdgeComparator::GetSquaredDist(Edge const & edge) const } // IndexRouter ------------------------------------------------------------------------------------ -IndexRouter::IndexRouter(VehicleType vehicleType, bool loadAltitudes, TCountryFileFn const & countryFileFn, - CourntryRectFn const & countryRectFn, shared_ptr numMwmIds, - unique_ptr> numMwmTree, traffic::TrafficCache const & trafficCache, - Index & index) +IndexRouter::IndexRouter(VehicleType vehicleType, bool loadAltitudes, + TCountryFileFn const & countryFileFn, CourntryRectFn const & countryRectFn, + shared_ptr numMwmIds, unique_ptr> numMwmTree, + traffic::TrafficCache const & trafficCache, Index & index) : m_vehicleType(vehicleType) , m_loadAltitudes(loadAltitudes) , m_name("astar-bidirectional-" + ToString(m_vehicleType)) @@ -298,10 +298,12 @@ IndexRouter::IndexRouter(VehicleType vehicleType, bool loadAltitudes, TCountryFi , m_numMwmTree(move(numMwmTree)) , m_trafficStash(CreateTrafficStash(m_vehicleType, m_numMwmIds, trafficCache)) , m_indexManager(countryFileFn, m_index) - , m_roadGraph(m_index, vehicleType == VehicleType::Pedestrian ? IRoadGraph::Mode::IgnoreOnewayTag - : IRoadGraph::Mode::ObeyOnewayTag, + , m_roadGraph(m_index, + vehicleType == VehicleType::Pedestrian ? IRoadGraph::Mode::IgnoreOnewayTag + : IRoadGraph::Mode::ObeyOnewayTag, m_vehicleModelFactory) - , m_estimator(EdgeEstimator::Create(m_vehicleType, CalcMaxSpeed(*m_numMwmIds, *m_vehicleModelFactory), m_trafficStash)) + , m_estimator(EdgeEstimator::Create( + m_vehicleType, CalcMaxSpeed(*m_numMwmIds, *m_vehicleModelFactory), m_trafficStash)) , m_directionsEngine(CreateDirectionsEngine(m_vehicleType, m_numMwmIds, m_index)) { CHECK(!m_name.empty(), ()); -- cgit v1.2.3