]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2372] hide specific state cleasse inside an unnamed namespace.
authorJINMEI Tatuya <jinmei@isc.org>
Mon, 12 Nov 2012 19:05:58 +0000 (11:05 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Mon, 12 Nov 2012 19:05:58 +0000 (11:05 -0800)
they don't have to be (actually they already aren't) visible outside this
translation unit.

src/lib/dns/master_lexer.cc

index 06ec9f54f2866be53c0dcb41205d87811a5b5162..6087038d164da090779da302277e9c3a8ee45a76 100644 (file)
@@ -167,6 +167,7 @@ State::getParenCount(const MasterLexer& lexer) const {
     return (lexer.impl_->paren_count_);
 }
 
+namespace {
 class CRLF : public State {
 public:
     CRLF() {}
@@ -200,7 +201,6 @@ public:
     }
 };
 
-namespace {
 // 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
 // we don't prohibit direct construction of these objects.  But that doesn't