From 353059d2c201f9c2e553a26db8445c527c012383 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Thu, 17 May 2018 16:19:36 +0300 Subject: [PATCH] Removing dangling reference from TAlgorithmImpl::Param in routing tests. --- routing/routing_tests/routing_algorithm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routing/routing_tests/routing_algorithm.cpp b/routing/routing_tests/routing_algorithm.cpp index b6b04efec4..1d9b615bcc 100644 --- a/routing/routing_tests/routing_algorithm.cpp +++ b/routing/routing_tests/routing_algorithm.cpp @@ -137,8 +137,9 @@ IRoutingAlgorithm::Result AStarBidirectionalRoutingAlgorithm::CalculateRoute( RoutingResult & path) { RoadGraph roadGraph(graph); + base::Cancellable const cancellable; TAlgorithmImpl::Params params(roadGraph, startPos, finalPos, {} /* prevRoute */, - {} /* cancellable */, {} /* onVisitJunctionFn */, {} /* checkLength */); + cancellable, {} /* onVisitJunctionFn */, {} /* checkLength */); TAlgorithmImpl::Result const res = TAlgorithmImpl().FindPathBidirectional(params, path); return Convert(res); }