From d6195ab26923dc752b9a89750140ce13fd2ecc3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D1=80=D1=8B=D0=B8=CC=86=20=D0=AD=D1=8D?= =?UTF-8?q?=D1=85?= Date: Fri, 30 Jun 2017 12:00:42 +0300 Subject: [PATCH] [routing] Pull request #6437 review fixes --- routing/directions_engine.cpp | 4 ++-- routing/index_road_graph.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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) {