BIND 10 trac2106, updated. a539dcc9f4f0f6d334fbcf0f0f36b3182547aca5 [2106] Change variable naming slightly

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Jul 27 05:38:47 UTC 2012


The branch, trac2106 has been updated
       via  a539dcc9f4f0f6d334fbcf0f0f36b3182547aca5 (commit)
      from  e50cd96f5079816c9e951cebaf4844317dedcbe3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a539dcc9f4f0f6d334fbcf0f0f36b3182547aca5
Author: Mukund Sivaraman <muks at isc.org>
Date:   Fri Jul 27 11:08:37 2012 +0530

    [2106] Change variable naming slightly

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/rbtree.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/rbtree.h b/src/lib/datasrc/rbtree.h
index 0e77fdd..465078f 100644
--- a/src/lib/datasrc/rbtree.h
+++ b/src/lib/datasrc/rbtree.h
@@ -1320,7 +1320,7 @@ RBTree<T>::deleteHelper(util::MemorySegment& mem_sgmt, RBNode<T>* root) {
 template <typename T>
 template <typename CBARG>
 typename RBTree<T>::Result
-RBTree<T>::find(const isc::dns::LabelSequence& target_labels,
+RBTree<T>::find(const isc::dns::LabelSequence& target_labels_orig,
                 RBNode<T>** target,
                 RBTreeNodeChain<T>& node_path,
                 bool (*callback)(const RBNode<T>&, CBARG),
@@ -1332,11 +1332,11 @@ RBTree<T>::find(const isc::dns::LabelSequence& target_labels,
 
     RBNode<T>* node = root_.get();
     Result ret = NOTFOUND;
-    dns::LabelSequence target_labels_copy(target_labels);
+    dns::LabelSequence target_labels(target_labels_orig);
 
     while (node != NULLNODE) {
         node_path.last_compared_ = node;
-        node_path.last_comparison_ = target_labels_copy.compare(node->getLabels());
+        node_path.last_comparison_ = target_labels.compare(node->getLabels());
         const isc::dns::NameComparisonResult::NameRelation relation =
             node_path.last_comparison_.getRelation();
 
@@ -1365,7 +1365,7 @@ RBTree<T>::find(const isc::dns::LabelSequence& target_labels,
                     }
                 }
                 node_path.push(node);
-                target_labels_copy.stripRight(
+                target_labels.stripRight(
                     node_path.last_comparison_.getCommonLabels());
                 node = node->getDown();
             } else {



More information about the bind10-changes mailing list