fix(Content): use move operator correctly

This commit is contained in:
Ronan Abhamon 2017-10-02 11:08:12 +02:00
parent 3544ad224f
commit 11f9f38d26
2 changed files with 3 additions and 3 deletions

View file

@ -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) {
L_D();
d->body = body;
d->body = move(body);
}
void Content::setBody (const string &body) {

View file

@ -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);