Removing dangling reference from TAlgorithmImpl::Param in routing tests.

This commit is contained in:
Vladimir Byko-Ianko 2018-05-17 16:19:36 +03:00 committed by mpimenov
parent 034339f145
commit 353059d2c2

View file

@ -137,8 +137,9 @@ IRoutingAlgorithm::Result AStarBidirectionalRoutingAlgorithm::CalculateRoute(
RoutingResult<IRoadGraph::Vertex, IRoadGraph::Weight> & 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);
}