Browse Source

[2151] change name to LabelSequence::WILDCARD

Jelte Jansen 12 years ago
parent
commit
73291cf041
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/lib/dns/labelsequence.h
  2. 2 2
      src/lib/dns/tests/labelsequence_unittest.cc

+ 2 - 2
src/lib/dns/labelsequence.h

@@ -58,7 +58,7 @@ public:
     ///
     ///
     //@{
     //@{
     /// Wildcard label ("*")
     /// Wildcard label ("*")
-    static const LabelSequence& WILDCARD_LABEL();
+    static const LabelSequence& WILDCARD();
     //@}
     //@}
 
 
     /// \brief Constructs a LabelSequence for the given name
     /// \brief Constructs a LabelSequence for the given name
@@ -419,7 +419,7 @@ std::ostream&
 operator<<(std::ostream& os, const LabelSequence& label_sequence);
 operator<<(std::ostream& os, const LabelSequence& label_sequence);
 
 
 inline const LabelSequence&
 inline const LabelSequence&
-LabelSequence::WILDCARD_LABEL() {
+LabelSequence::WILDCARD() {
     static const uint8_t wildcard_buf[4] = { 0x01, 0x00, 0x01, '*' };
     static const uint8_t wildcard_buf[4] = { 0x01, 0x00, 0x01, '*' };
     static const LabelSequence wild_ls(wildcard_buf);
     static const LabelSequence wild_ls(wildcard_buf);
     return (wild_ls);
     return (wild_ls);

+ 2 - 2
src/lib/dns/tests/labelsequence_unittest.cc

@@ -1176,8 +1176,8 @@ TEST_F(ExtendableLabelSequenceTest, extendBadData) {
 
 
 // Check the static fixed 'wildcard' LabelSequence
 // Check the static fixed 'wildcard' LabelSequence
 TEST(WildCardLabelSequence, wildcard) {
 TEST(WildCardLabelSequence, wildcard) {
-    ASSERT_FALSE(LabelSequence::WILDCARD_LABEL().isAbsolute());
-    ASSERT_EQ("*", LabelSequence::WILDCARD_LABEL().toText());
+    ASSERT_FALSE(LabelSequence::WILDCARD().isAbsolute());
+    ASSERT_EQ("*", LabelSequence::WILDCARD().toText());
 }
 }
 
 
 }
 }