From 01e1fdaf495342ae8735ec74eb57f912fa67d535 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Jul 2012 21:07:10 +0900 Subject: Parse torrent file on the fly if --follow-torrent=mem is given In this changes, Bencode parser in bencode2 is removed and the request is delegated to BencodeParser. --- src/ValueBaseStructParserStateMachine.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ValueBaseStructParserStateMachine.cc') diff --git a/src/ValueBaseStructParserStateMachine.cc b/src/ValueBaseStructParserStateMachine.cc index 4a446a15..04d1033c 100644 --- a/src/ValueBaseStructParserStateMachine.cc +++ b/src/ValueBaseStructParserStateMachine.cc @@ -65,8 +65,11 @@ NullValueBaseStructParserState* nullState = new NullValueBaseStructParserState(); } // namespace -const SharedHandle -ValueBaseStructParserStateMachine::noResult = ValueBase::none; +const SharedHandle& +ValueBaseStructParserStateMachine::noResult() +{ + return ValueBase::none; +} ValueBaseStructParserStateMachine::ValueBaseStructParserStateMachine() : ctrl_(new rpc::XmlRpcRequestParserController()) -- cgit