From c73cad0811c4413eaee8741b5493a61eb5821757 Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Sun, 5 Dec 2021 18:53:55 +0300 Subject: [PATCH] [routing] Do not use v.emplace_back(v[i]). Signed-off-by: Viktor Govako --- routing/single_vehicle_world_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/single_vehicle_world_graph.cpp b/routing/single_vehicle_world_graph.cpp index 4ca44dcba7..05913e5ccc 100644 --- a/routing/single_vehicle_world_graph.cpp +++ b/routing/single_vehicle_world_graph.cpp @@ -79,7 +79,7 @@ void SingleVehicleWorldGraph::CheckAndProcessTransitFeatures(Segment const & par newCrossMwmEdges.back().GetWeight() += m_hierarchyHandler.GetCrossBorderPenalty(mwmId, twinMwmId); - parentWeights.emplace_back(parentWeights[i]); + parentWeights.push_back(parentWeights[i]); } } }