Skip to content

Commit

Permalink
Make some temporary variables const
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarex committed May 21, 2014
1 parent bef1130 commit e2daf5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Contractor/Contractor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<false>(data, x);
}
}
Expand All @@ -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);
}
}
Expand All @@ -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 &current_data =
Expand Down

0 comments on commit e2daf5c

Please sign in to comment.