From: JINMEI Tatuya Date: Tue, 30 Oct 2012 03:23:23 +0000 (-0700) Subject: [2371] define and initialize Token for the lexer. X-Git-Tag: trac2487_base~1^2~21^2~30^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=213e364291339b5e8367de470c02af695065d1ba;p=thirdparty%2Fkea.git [2371] define and initialize Token for the lexer. not actually needed in this branch, but it will clarify the idea of how it will be used in later tasks. --- diff --git a/src/lib/dns/master_lexer.cc b/src/lib/dns/master_lexer.cc index f4694cbf32..f4432ff79e 100644 --- a/src/lib/dns/master_lexer.cc +++ b/src/lib/dns/master_lexer.cc @@ -54,7 +54,10 @@ typedef boost::shared_ptr InputSourcePtr; using namespace master_lexer_internal; struct MasterLexer::MasterLexerImpl { + MasterLexerImpl() : token_(Token::NOT_STARTED) {} + std::vector sources_; + Token token_; }; MasterLexer::MasterLexer() : impl_(new MasterLexerImpl) {