BIND 10 trac2093, updated. 0669a4f48c5e6918ee1ab4cf40ce9b74e8169ba0 [2093] constify

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jul 31 06:37:07 UTC 2012


The branch, trac2093 has been updated
       via  0669a4f48c5e6918ee1ab4cf40ce9b74e8169ba0 (commit)
      from  de315c3ed326c7b7b9c395d85f3ec30177ee4772 (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 0669a4f48c5e6918ee1ab4cf40ce9b74e8169ba0
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Mon Jul 30 23:36:46 2012 -0700

    [2093] constify

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

Summary of changes:
 src/lib/datasrc/tests/rbtree_unittest.cc |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/tests/rbtree_unittest.cc b/src/lib/datasrc/tests/rbtree_unittest.cc
index ba064b7..d36b1f6 100644
--- a/src/lib/datasrc/tests/rbtree_unittest.cc
+++ b/src/lib/datasrc/tests/rbtree_unittest.cc
@@ -999,19 +999,19 @@ TEST_F(RBTreeTest, getAbsoluteLabels) {
         "c", "b", "a", "x", "z", "g.h", "i", "o",
         "j", "p", "q", "k"};
 
-    int name_count = sizeof(domain_names) / sizeof(domain_names[0]);
+    const int name_count = sizeof(domain_names) / sizeof(domain_names[0]);
     uint8_t buf[LabelSequence::MAX_SERIALIZED_LENGTH];
     for (int i = 0; i < name_count; ++i) {
         EXPECT_EQ(RBTree<int>::EXACTMATCH, rbtree.find(Name(domain_names[i]),
                   &crbtnode));
 
         // First make sure the names themselves are not absolute
-        LabelSequence ls(crbtnode->getLabels());
+        const LabelSequence ls(crbtnode->getLabels());
         EXPECT_EQ(first_labels[i], ls.toText());
         EXPECT_FALSE(ls.isAbsolute());
 
         // Now check the absolute names
-        LabelSequence abs_ls(crbtnode->getAbsoluteLabels(buf));
+        const LabelSequence abs_ls(crbtnode->getAbsoluteLabels(buf));
         EXPECT_EQ(Name(domain_names[i]).toText(), abs_ls.toText());
         EXPECT_TRUE(abs_ls.isAbsolute());
     }



More information about the bind10-changes mailing list