diff --git a/routing/directions_engine.cpp b/routing/directions_engine.cpp index ad9f5ccefe..17503b2cac 100644 --- a/routing/directions_engine.cpp +++ b/routing/directions_engine.cpp @@ -14,8 +14,6 @@ bool IDirectionsEngine::ReconstructPath(RoadGraphBase const & graph, vector currEdges; for (size_t i = 1; i < path.size(); ++i) diff --git a/routing/index_road_graph.cpp b/routing/index_road_graph.cpp index 465a1c1734..048489afe2 100644 --- a/routing/index_road_graph.cpp +++ b/routing/index_road_graph.cpp @@ -74,6 +74,7 @@ bool IndexRoadGraph::IsRouteEdgesImplemented() const void IndexRoadGraph::GetRouteEdges(TEdgeVector & edges) const { edges.clear(); + edges.reserve(m_segments.size()); for (Segment const & segment : m_segments) {