Do not copy pairs in loop

This commit is contained in:
Daniel J. Hofmann 2016-03-14 16:24:51 +01:00
parent a013da860e
commit 40f95191a0

View File

@ -630,7 +630,7 @@ template <class DataFacadeT, class Derived> 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 DataFacadeT, class Derived> 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)
{