]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2092] Remove some initializers
authorMukund Sivaraman <muks@isc.org>
Tue, 24 Jul 2012 22:21:11 +0000 (03:51 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 24 Jul 2012 22:21:11 +0000 (03:51 +0530)
src/lib/datasrc/rbtree.h

index 6af67d53775295d543baeec6c58c7381f623b3f8..c3e9fd3ab92dcef0e6dc9ad95db4114e3b4b14e4 100644 (file)
@@ -1313,7 +1313,7 @@ RBTree<T>::previousNode(RBTreeNodeChain<T>& node_path) const {
                     // Go a level down and as much right there as possible
                     current = current->getDown();
                     if (current != NULL) {
-                        const RBNode<T>* right(NULL);
+                        const RBNode<T>* right;
                         while ((right = current->getRight()) != NULL) {
                             current = right;
                         }
@@ -1396,7 +1396,7 @@ RBTree<T>::previousNode(RBTreeNodeChain<T>& node_path) const {
         node = down;
         if (node != NULL) {
             // And get as much to the right of the tree as possible
-            const RBNode<T>* right(NULL);
+            const RBNode<T>* right;
             while ((right = node->getRight()) != NULL) {
                 node = right;
             }