summaryrefslogtreecommitdiff
path: root/src/XmlRpcRequestParserStateMachine.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/XmlRpcRequestParserStateMachine.cc
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/XmlRpcRequestParserStateMachine.cc')
-rw-r--r--src/XmlRpcRequestParserStateMachine.cc34
1 files changed, 14 insertions, 20 deletions
diff --git a/src/XmlRpcRequestParserStateMachine.cc b/src/XmlRpcRequestParserStateMachine.cc
index d3e2e1fb..29c77567 100644
--- a/src/XmlRpcRequestParserStateMachine.cc
+++ b/src/XmlRpcRequestParserStateMachine.cc
@@ -67,15 +67,15 @@ auto memberState = new MemberXmlRpcRequestParserState();
auto nameState = new NameXmlRpcRequestParserState();
-auto arrayState = new ArrayXmlRpcRequestParserState();
+auto arrayState = new ArrayXmlRpcRequestParserState();
auto dataState = new DataXmlRpcRequestParserState();
auto arrayValueState = new ArrayValueXmlRpcRequestParserState();
} // namespace
-XmlRpcRequestParserStateMachine::XmlRpcRequestParserStateMachine():
- controller_(new XmlRpcRequestParserController())
+XmlRpcRequestParserStateMachine::XmlRpcRequestParserStateMachine()
+ : controller_(new XmlRpcRequestParserController())
{
stateStack_.push(initialState);
}
@@ -88,7 +88,7 @@ XmlRpcRequestParserStateMachine::~XmlRpcRequestParserStateMachine()
void XmlRpcRequestParserStateMachine::reset()
{
controller_->reset();
- while(!stateStack_.empty()) {
+ while (!stateStack_.empty()) {
stateStack_.pop();
}
stateStack_.push(initialState);
@@ -104,20 +104,17 @@ bool XmlRpcRequestParserStateMachine::finished() const
return stateStack_.top() == initialState;
}
-void XmlRpcRequestParserStateMachine::beginElement
-(const char* localname,
- const char* prefix,
- const char* nsUri,
- const std::vector<XmlAttr>& attrs)
+void XmlRpcRequestParserStateMachine::beginElement(
+ const char* localname, const char* prefix, const char* nsUri,
+ const std::vector<XmlAttr>& attrs)
{
stateStack_.top()->beginElement(this, localname, attrs);
}
-void XmlRpcRequestParserStateMachine::endElement
-(const char* localname,
- const char* prefix,
- const char* nsUri,
- std::string characters)
+void XmlRpcRequestParserStateMachine::endElement(const char* localname,
+ const char* prefix,
+ const char* nsUri,
+ std::string characters)
{
stateStack_.top()->endElement(this, localname, std::move(characters));
stateStack_.pop();
@@ -143,13 +140,10 @@ void XmlRpcRequestParserStateMachine::popStructFrame()
controller_->popStructFrame();
}
-void XmlRpcRequestParserStateMachine::pushFrame()
-{
- controller_->pushFrame();
-}
+void XmlRpcRequestParserStateMachine::pushFrame() { controller_->pushFrame(); }
-void XmlRpcRequestParserStateMachine::setCurrentFrameValue
-(std::unique_ptr<ValueBase> value)
+void XmlRpcRequestParserStateMachine::setCurrentFrameValue(
+ std::unique_ptr<ValueBase> value)
{
controller_->setCurrentFrameValue(std::move(value));
}