summaryrefslogtreecommitdiff
path: root/src/Signature.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-11-10 20:39:31 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-11-10 20:39:31 +0900
commitc4334ec57908864fed952c52c6b6416ecd40f514 (patch)
treef0cb535d930a3bcf865268f2c1089f27e5e7286c /src/Signature.cc
parent9e52483c04045ced0aa11b408f905a2baa97ea49 (diff)
Use move for XML parser
Diffstat (limited to 'src/Signature.cc')
-rw-r--r--src/Signature.cc12
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