diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-07-26 21:07:10 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-07-26 21:07:10 +0900 |
| commit | 01e1fdaf495342ae8735ec74eb57f912fa67d535 (patch) | |
| tree | e5573e8aa7f3786d8364c76cabf5397f7473ed2f /src/ValueBaseStructParserStateMachine.cc | |
| parent | 7176107414f73d7fe0cfd7d5ce516aa41a2f0b22 (diff) | |
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.
Diffstat (limited to 'src/ValueBaseStructParserStateMachine.cc')
| -rw-r--r-- | src/ValueBaseStructParserStateMachine.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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<ValueBase> -ValueBaseStructParserStateMachine::noResult = ValueBase::none; +const SharedHandle<ValueBase>& +ValueBaseStructParserStateMachine::noResult() +{ + return ValueBase::none; +} ValueBaseStructParserStateMachine::ValueBaseStructParserStateMachine() : ctrl_(new rpc::XmlRpcRequestParserController()) |
