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.h | |
| parent | 7a57ecc5f814dc305e5e4b9bd960d69b43870c0e (diff) | |
Use std::unique_ptr for ValueBase object hierarchy
Diffstat (limited to 'src/XmlRpcRequestParserStateMachine.h')
| -rw-r--r-- | src/XmlRpcRequestParserStateMachine.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/XmlRpcRequestParserStateMachine.h b/src/XmlRpcRequestParserStateMachine.h index 2fb423c4..cbc0f419 100644 --- a/src/XmlRpcRequestParserStateMachine.h +++ b/src/XmlRpcRequestParserStateMachine.h @@ -77,8 +77,9 @@ public: void popArrayFrame(); void popStructFrame(); void pushFrame(); - void setCurrentFrameValue(const std::shared_ptr<ValueBase>& value); - const std::shared_ptr<ValueBase>& getCurrentFrameValue() const; + void setCurrentFrameValue(std::unique_ptr<ValueBase> value); + const std::unique_ptr<ValueBase>& getCurrentFrameValue() const; + std::unique_ptr<ValueBase> popCurrentFrameValue(); void setCurrentFrameName(const std::string& name); void pushUnknownElementState(); |
