diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-11 21:09:51 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-11 21:09:51 +0900 |
| commit | 7c06b903f3493db95fcf4bd42cccc59e3b4d0692 (patch) | |
| tree | f10a85795bb086e0b257a0e6c6c5ffb05f28f344 /src/XmlRpcRequestParserStateMachine.cc | |
| parent | 7a57ecc5f814dc305e5e4b9bd960d69b43870c0e (diff) | |
Use std::unique_ptr for ValueBase object hierarchy
Diffstat (limited to 'src/XmlRpcRequestParserStateMachine.cc')
| -rw-r--r-- | src/XmlRpcRequestParserStateMachine.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/XmlRpcRequestParserStateMachine.cc b/src/XmlRpcRequestParserStateMachine.cc index 22b90246..73917a49 100644 --- a/src/XmlRpcRequestParserStateMachine.cc +++ b/src/XmlRpcRequestParserStateMachine.cc @@ -166,17 +166,23 @@ void XmlRpcRequestParserStateMachine::pushFrame() } void XmlRpcRequestParserStateMachine::setCurrentFrameValue -(const std::shared_ptr<ValueBase>& value) +(std::unique_ptr<ValueBase> value) { - controller_->setCurrentFrameValue(value); + controller_->setCurrentFrameValue(std::move(value)); } -const std::shared_ptr<ValueBase>& +const std::unique_ptr<ValueBase>& XmlRpcRequestParserStateMachine::getCurrentFrameValue() const { return controller_->getCurrentFrameValue(); } +std::unique_ptr<ValueBase> +XmlRpcRequestParserStateMachine::popCurrentFrameValue() +{ + return controller_->popCurrentFrameValue(); +} + void XmlRpcRequestParserStateMachine::setCurrentFrameName (const std::string& name) { |
