Skip to content

Commit

Permalink
const'ing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Luxen committed Aug 9, 2013
1 parent 149a42c commit e86e8c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataStructures/BinaryHeap.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ class BinaryHeap {
return insertedNodes[index].weight;
}

bool WasRemoved( NodeID node ) {
bool WasRemoved( const NodeID node ) {
assert( WasInserted( node ) );
const Key index = nodeIndex[node];
return insertedNodes[index].key == 0;
}

bool WasInserted( NodeID node ) {
bool WasInserted( const NodeID node ) {
const Key index = nodeIndex[node];
if ( index >= static_cast<Key> (insertedNodes.size()) )
return false;
Expand Down

0 comments on commit e86e8c3

Please sign in to comment.