diff --git a/Contractor/Contractor.h b/Contractor/Contractor.h index 9bf8f8b3f..e0344c1f5 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 =