[tidy] Check modernize-pass-by-value

Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
This commit is contained in:
Bruno de Oliveira Abinader
2016-06-12 13:53:35 +03:00
parent 92f605df32
commit 4161d197fd
54 changed files with 120 additions and 135 deletions

View File

@@ -21,8 +21,8 @@ Response& Response::operator=(const Response& res) {
return *this;
}
Response::Error::Error(Reason reason_, const std::string& message_)
: reason(reason_), message(message_) {
Response::Error::Error(Reason reason_, std::string message_)
: reason(reason_), message(std::move(message_)) {
}
std::ostream& operator<<(std::ostream& os, Response::Error::Reason r) {