From 40f95191a0ede92e54d01bf2eae6dc486e703aea Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Mon, 14 Mar 2016 16:24:51 +0100 Subject: [PATCH] Do not copy pairs in loop --- include/engine/routing_algorithms/routing_base.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/engine/routing_algorithms/routing_base.hpp b/include/engine/routing_algorithms/routing_base.hpp index 3d33edf6f..4fef4291a 100644 --- a/include/engine/routing_algorithms/routing_base.hpp +++ b/include/engine/routing_algorithms/routing_base.hpp @@ -630,7 +630,7 @@ template class BasicRoutingInterface NodeID last_id = SPECIAL_NODEID; forward_core_heap.Clear(); reverse_core_heap.Clear(); - for (const auto p : forward_entry_points) + for (const auto& p : forward_entry_points) { if (p.first == last_id) { @@ -640,7 +640,7 @@ template class BasicRoutingInterface last_id = p.first; } last_id = SPECIAL_NODEID; - for (const auto p : reverse_entry_points) + for (const auto& p : reverse_entry_points) { if (p.first == last_id) {