From 3b5df2b1529f7a0788ff1618e25d17b27d57df46 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Wed, 18 Apr 2018 17:27:26 +0300 Subject: Review fixes. --- routing/routing_integration_tests/routing_test_tools.cpp | 4 +--- routing/transit_world_graph.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'routing') diff --git a/routing/routing_integration_tests/routing_test_tools.cpp b/routing/routing_integration_tests/routing_test_tools.cpp index 05b8df7a60..2e205b39c3 100644 --- a/routing/routing_integration_tests/routing_test_tools.cpp +++ b/routing/routing_integration_tests/routing_test_tools.cpp @@ -297,9 +297,7 @@ namespace integration { return routerComponents.GetCountryInfoGetter().GetRegionCountryId(p); }; - auto localFileChecker = - [&routerComponents](string const & /* countryFile */) -> bool - { + auto localFileChecker = [](string const & /* countryFile */) -> bool { // Always returns that the file is absent. return false; }; diff --git a/routing/transit_world_graph.cpp b/routing/transit_world_graph.cpp index 684ecc51d0..2ff09ff253 100644 --- a/routing/transit_world_graph.cpp +++ b/routing/transit_world_graph.cpp @@ -181,7 +181,7 @@ void TransitWorldGraph::GetTwinsInner(Segment const & segment, bool isOutgoing, RoadGeometry const & TransitWorldGraph::GetRealRoadGeometry(NumMwmId mwmId, uint32_t featureId) { CHECK(!TransitGraph::IsTransitFeature(featureId), ("GetRealRoadGeometry not designed for transit.")); - return GetIndexGraph(mwmId).GetGeometry().GetRoad(featureId); + return m_indexLoader->GetGeometry(mwmId).GetRoad(featureId); } void TransitWorldGraph::AddRealEdges(Segment const & segment, bool isOutgoing, -- cgit v1.2.3