summaryrefslogtreecommitdiff
path: root/src/ValueBaseStructParserStateMachine.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
commit07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch)
tree2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/ValueBaseStructParserStateMachine.cc
parent126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff)
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/ValueBaseStructParserStateMachine.cc')
-rw-r--r--src/ValueBaseStructParserStateMachine.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ValueBaseStructParserStateMachine.cc b/src/ValueBaseStructParserStateMachine.cc
index 04d1033c..4f63ed14 100644
--- a/src/ValueBaseStructParserStateMachine.cc
+++ b/src/ValueBaseStructParserStateMachine.cc
@@ -65,7 +65,7 @@ NullValueBaseStructParserState* nullState =
new NullValueBaseStructParserState();
} // namespace
-const SharedHandle<ValueBase>&
+const std::shared_ptr<ValueBase>&
ValueBaseStructParserStateMachine::noResult()
{
return ValueBase::none;
@@ -102,7 +102,7 @@ void ValueBaseStructParserStateMachine::endElement(int elementType)
stateStack_.pop();
}
-SharedHandle<ValueBase>
+std::shared_ptr<ValueBase>
ValueBaseStructParserStateMachine::getResult() const
{
return getCurrentFrameValue();
@@ -159,12 +159,12 @@ void ValueBaseStructParserStateMachine::pushFrame()
}
void ValueBaseStructParserStateMachine::setCurrentFrameValue
-(const SharedHandle<ValueBase>& value)
+(const std::shared_ptr<ValueBase>& value)
{
ctrl_->setCurrentFrameValue(value);
}
-const SharedHandle<ValueBase>&
+const std::shared_ptr<ValueBase>&
ValueBaseStructParserStateMachine::getCurrentFrameValue() const
{
return ctrl_->getCurrentFrameValue();