Browse Source

[2565] style cleanups: constify; combine short lines

JINMEI Tatuya 12 years ago
parent
commit
5ec876c98d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/lib/dns/master_loader.cc

+ 2 - 3
src/lib/dns/master_loader.cc

@@ -210,7 +210,7 @@ private:
             // after the RR class below.
         }
 
-        MaybeRRClass rrclass =
+        const MaybeRRClass rrclass =
             RRClass::createFromText(rrparam_token.getString());
         if (rrclass) {
             if (rrclass != zone_class_) {
@@ -224,8 +224,7 @@ private:
 
         // If we couldn't parse TTL earlier in the stream (above), try
         // again at current location.
-        if (!explicit_ttl &&
-            setCurrentTTL(rrparam_token.getString())) {
+        if (!explicit_ttl && setCurrentTTL(rrparam_token.getString())) {
             explicit_ttl = true;
             rrparam_token = lexer_.getNextToken(MasterToken::STRING);
         }