diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/XmlRpcRequestParserController.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/XmlRpcRequestParserController.cc')
| -rw-r--r-- | src/XmlRpcRequestParserController.cc | 16 |
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(); |
