From e2daf5c2fc988198e0d89df15e572e2904d401ac Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Wed, 21 May 2014 21:48:53 +0200 Subject: [PATCH] Make some temporary variables const --- Contractor/Contractor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Contractor/Contractor.h b/Contractor/Contractor.h index 9bf8f8b3fd8..e0344c1f54b 100644 --- a/Contractor/Contractor.h +++ b/Contractor/Contractor.h @@ -461,7 +461,7 @@ class Contractor ContractorThreadData *data = thread_data_list.getThreadData(); for (int position = range.begin(); position != range.end(); ++position) { - NodeID x = remaining_nodes[position].id; + const NodeID x = remaining_nodes[position].id; this->ContractNode(data, x); } } @@ -481,7 +481,7 @@ class Contractor ContractorThreadData *data = thread_data_list.getThreadData(); for (int position = range.begin(); position != range.end(); ++position) { - NodeID x = remaining_nodes[position].id; + const NodeID x = remaining_nodes[position].id; this->DeleteIncomingEdges(data, x); } } @@ -492,7 +492,7 @@ class Contractor { for (const ContractorEdge &edge : data->inserted_edges) { - auto current_edge_ID = contractor_graph->FindEdge(edge.source, edge.target); + const EdgeID current_edge_ID = contractor_graph->FindEdge(edge.source, edge.target); if (current_edge_ID < contractor_graph->EndEdges(edge.source)) { ContractorGraph::EdgeData ¤t_data =