summaryrefslogtreecommitdiff
path: root/src/XmlRpcRequestParserStateMachine.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-11 21:09:51 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-11 21:09:51 +0900
commit7c06b903f3493db95fcf4bd42cccc59e3b4d0692 (patch)
treef10a85795bb086e0b257a0e6c6c5ffb05f28f344 /src/XmlRpcRequestParserStateMachine.h
parent7a57ecc5f814dc305e5e4b9bd960d69b43870c0e (diff)
Use std::unique_ptr for ValueBase object hierarchy
Diffstat (limited to 'src/XmlRpcRequestParserStateMachine.h')
-rw-r--r--src/XmlRpcRequestParserStateMachine.h5
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();