Browse Source

[2372] hide specific state cleasse inside an unnamed namespace.

they don't have to be (actually they already aren't) visible outside this
translation unit.
JINMEI Tatuya 12 years ago
parent
commit
9fb295c549
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dns/master_lexer.cc

+ 1 - 1
src/lib/dns/master_lexer.cc

@@ -167,6 +167,7 @@ State::getParenCount(const MasterLexer& lexer) const {
     return (lexer.impl_->paren_count_);
     return (lexer.impl_->paren_count_);
 }
 }
 
 
+namespace {
 class CRLF : public State {
 class CRLF : public State {
 public:
 public:
     CRLF() {}
     CRLF() {}
@@ -200,7 +201,6 @@ public:
     }
     }
 };
 };
 
 
-namespace {
 // We use a common instance of a each state in a singleton-like way to save
 // We use a common instance of a each state in a singleton-like way to save
 // construction overhead.  They are not singletons in its strict sense as
 // construction overhead.  They are not singletons in its strict sense as
 // we don't prohibit direct construction of these objects.  But that doesn't
 // we don't prohibit direct construction of these objects.  But that doesn't