From: Mukund Sivaraman Date: Tue, 24 Jul 2012 22:21:11 +0000 (+0530) Subject: [2092] Remove some initializers X-Git-Tag: trac2351_base~158^2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cbfc95d3ce3a5d15acfe603ea8816a7dc04febe;p=thirdparty%2Fkea.git [2092] Remove some initializers --- diff --git a/src/lib/datasrc/rbtree.h b/src/lib/datasrc/rbtree.h index 6af67d5377..c3e9fd3ab9 100644 --- a/src/lib/datasrc/rbtree.h +++ b/src/lib/datasrc/rbtree.h @@ -1313,7 +1313,7 @@ RBTree::previousNode(RBTreeNodeChain& node_path) const { // Go a level down and as much right there as possible current = current->getDown(); if (current != NULL) { - const RBNode* right(NULL); + const RBNode* right; while ((right = current->getRight()) != NULL) { current = right; } @@ -1396,7 +1396,7 @@ RBTree::previousNode(RBTreeNodeChain& node_path) const { node = down; if (node != NULL) { // And get as much to the right of the tree as possible - const RBNode* right(NULL); + const RBNode* right; while ((right = node->getRight()) != NULL) { node = right; }