From b1132d6b10cd3791b9529d7031d723fd0e2d8215 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 27 Dec 2015 18:39:47 +0900 Subject: make clang-format using clang-format-3.6 --- src/XmlRpcRequestParserController.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/XmlRpcRequestParserController.cc') 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(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(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 value) +void XmlRpcRequestParserController::setCurrentFrameValue( + std::unique_ptr 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 -XmlRpcRequestParserController::popCurrentFrameValue() +std::unique_ptr XmlRpcRequestParserController::popCurrentFrameValue() { return std::move(currentFrame_.value_); } void XmlRpcRequestParserController::reset() { - while(!frameStack_.empty()) { + while (!frameStack_.empty()) { frameStack_.pop(); } currentFrame_.reset(); -- cgit