From 23d292bc04a600e40421ab59e7905febcc222713 Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Wed, 20 Mar 2019 17:24:56 +0300 Subject: [PATCH] Minor renaming. --- map/routing_manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/map/routing_manager.cpp b/map/routing_manager.cpp index d1f1c038ab..72602fd05d 100644 --- a/map/routing_manager.cpp +++ b/map/routing_manager.cpp @@ -536,7 +536,7 @@ void RoutingManager::CollectRoadWarnings(std::vector cons m2::PointD const & startPt, double baseDistance, GetMwmIdFn const & getMwmIdFn, RoadWarningsCollection & roadWarnings) { - auto const isImportantType = [](RoutingOptions::Road roadType) + auto const isWarnedType = [](RoutingOptions::Road roadType) { return roadType == RoutingOptions::Road::Toll || roadType == RoutingOptions::Road::Ferry || roadType == RoutingOptions::Road::Dirty; @@ -550,10 +550,10 @@ void RoutingManager::CollectRoadWarnings(std::vector cons auto const currentType = ChooseMainRoutingOptionRoad(segments[i].GetRoadTypes()); if (currentType != lastType) { - if (isImportantType(lastType)) + if (isWarnedType(lastType)) roadWarnings[lastType].back().m_distance = segments[i].GetDistFromBeginningMeters() - startDistance; - if (isImportantType(currentType)) + if (isWarnedType(currentType)) { startDistance = currentDistance; auto const featureId = FeatureID(getMwmIdFn(segments[i].GetSegment().GetMwmId()), @@ -565,7 +565,7 @@ void RoutingManager::CollectRoadWarnings(std::vector cons } currentDistance = segments[i].GetDistFromBeginningMeters(); } - if (isImportantType(lastType)) + if (isWarnedType(lastType)) roadWarnings[lastType].back().m_distance = segments.back().GetDistFromBeginningMeters() - startDistance; }