summaryrefslogtreecommitdiff
path: root/src/XmlRpcRequestParserController.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-26 17:12:52 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-26 17:20:27 +0900
commitd64089632e82a2548752c7a6baaa68365a795a74 (patch)
tree57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /src/XmlRpcRequestParserController.cc
parentc81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff)
parenta7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff)
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/XmlRpcRequestParserController.cc')
-rw-r--r--src/XmlRpcRequestParserController.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/XmlRpcRequestParserController.cc b/src/XmlRpcRequestParserController.cc
index 067df858..25a5addc 100644
--- a/src/XmlRpcRequestParserController.cc
+++ b/src/XmlRpcRequestParserController.cc
@@ -54,7 +54,7 @@ void XmlRpcRequestParserController::popStructFrame()
Dict* dict = downcast<Dict>(parentFrame.value_);
assert(dict);
frameStack_.pop();
- if(currentFrame_.validMember()) {
+ if (currentFrame_.validMember()) {
dict->put(std::move(currentFrame_.name_), std::move(currentFrame_.value_));
}
currentFrame_ = std::move(parentFrame);
@@ -68,20 +68,19 @@ void XmlRpcRequestParserController::popArrayFrame()
List* list = downcast<List>(parentFrame.value_);
assert(list);
frameStack_.pop();
- if(currentFrame_.value_) {
+ if (currentFrame_.value_) {
list->append(std::move(currentFrame_.value_));
}
currentFrame_ = std::move(parentFrame);
}
-void XmlRpcRequestParserController::setCurrentFrameValue
-(std::unique_ptr<ValueBase> value)
+void XmlRpcRequestParserController::setCurrentFrameValue(
+ std::unique_ptr<ValueBase> value)
{
currentFrame_.value_ = std::move(value);
}
-void XmlRpcRequestParserController::setCurrentFrameName
-(std::string name)
+void XmlRpcRequestParserController::setCurrentFrameName(std::string name)
{
currentFrame_.name_ = std::move(name);
}
@@ -92,15 +91,14 @@ XmlRpcRequestParserController::getCurrentFrameValue() const
return currentFrame_.value_;
}
-std::unique_ptr<ValueBase>
-XmlRpcRequestParserController::popCurrentFrameValue()
+std::unique_ptr<ValueBase> XmlRpcRequestParserController::popCurrentFrameValue()
{
return std::move(currentFrame_.value_);
}
void XmlRpcRequestParserController::reset()
{
- while(!frameStack_.empty()) {
+ while (!frameStack_.empty()) {
frameStack_.pop();
}
currentFrame_.reset();