Commit 11f9f38d authored by Ronan's avatar Ronan
Browse files

fix(Content): use move operator correctly

parent 3544ad22
......@@ -107,9 +107,9 @@ void Content::setBody (const vector<char> &body) {
d->body = body;
void Content::setBody (const std::vector<char> &&body) {
void Content::setBody (std::vector<char> &&body) {
d->body = body;
d->body = move(body);
void Content::setBody (const string &body) {
......@@ -50,7 +50,7 @@ public:
std::string getBodyAsString () const;
void setBody (const std::vector<char> &body);
void setBody (const std::vector<char> &&body);
void setBody (std::vector<char> &&body);
void setBody (const std::string &body);
void setBody (const void *buffer, size_t size);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment