forked from organicmaps/organicmaps
Removing dangling reference from TAlgorithmImpl::Param in routing tests.
This commit is contained in:
parent
034339f145
commit
353059d2c2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue