Browse Source

[2521] constify

JINMEI Tatuya 12 years ago
parent
commit
858d5facb7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/dns/rdata/in_1/dhcid_49.cc

+ 2 - 1
src/lib/dns/rdata/in_1/dhcid_49.cc

@@ -33,7 +33,8 @@ using namespace isc::util::encode;
 
 void
 DHCID::createFromLexer(MasterLexer& lexer) {
-    string digest_txt = lexer.getNextToken(MasterToken::STRING).getString();
+    const string digest_txt =
+        lexer.getNextToken(MasterToken::STRING).getString();
     decodeBase64(digest_txt, digest_);
 
     // RFC4701 states DNS software should consider the RDATA section to