Fixing errors from static analysis

This commit is contained in:
Dennis Luxen 2013-06-27 11:44:55 -04:00
parent 5c84c12f40
commit c940c2722e

View File

@ -186,8 +186,8 @@ public:
void DecreaseKey( NodeID node, Weight weight ) { void DecreaseKey( NodeID node, Weight weight ) {
assert( UINT_MAX != node ); assert( UINT_MAX != node );
const Key index = nodeIndex[node]; const Key & index = nodeIndex[node];
Key key = insertedNodes[index].key; Key & key = insertedNodes[index].key;
assert ( key >= 0 ); assert ( key >= 0 );
insertedNodes[index].weight = weight; insertedNodes[index].weight = weight;