diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-11-10 20:39:31 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-11-10 20:39:31 +0900 |
| commit | c4334ec57908864fed952c52c6b6416ecd40f514 (patch) | |
| tree | f0cb535d930a3bcf865268f2c1089f27e5e7286c /src/Signature.cc | |
| parent | 9e52483c04045ced0aa11b408f905a2baa97ea49 (diff) | |
Use move for XML parser
Diffstat (limited to 'src/Signature.cc')
| -rw-r--r-- | src/Signature.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Signature.cc b/src/Signature.cc index c12303e0..3226abc5 100644 --- a/src/Signature.cc +++ b/src/Signature.cc @@ -42,19 +42,19 @@ Signature::Signature() {} Signature::~Signature() {} -void Signature::setType(const std::string& type) +void Signature::setType(std::string type) { - type_ = type; + type_ = std::move(type); } -void Signature::setFile(const std::string& file) +void Signature::setFile(std::string file) { - file_ = file; + file_ = std::move(file); } -void Signature::setBody(const std::string& body) +void Signature::setBody(std::string body) { - body_ = body; + body_ = std::move(body); } bool Signature::save(const std::string& filepath) const |
