From c940c2722e313878c8957b26d282f92e327258b2 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 27 Jun 2013 11:44:55 -0400 Subject: [PATCH] Fixing errors from static analysis --- DataStructures/BinaryHeap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/BinaryHeap.h b/DataStructures/BinaryHeap.h index 5bbcb3b3f..6b9bd10c4 100644 --- a/DataStructures/BinaryHeap.h +++ b/DataStructures/BinaryHeap.h @@ -186,8 +186,8 @@ public: void DecreaseKey( NodeID node, Weight weight ) { assert( UINT_MAX != node ); - const Key index = nodeIndex[node]; - Key key = insertedNodes[index].key; + const Key & index = nodeIndex[node]; + Key & key = insertedNodes[index].key; assert ( key >= 0 ); insertedNodes[index].weight = weight;