mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix(Content): use move operator correctly
This commit is contained in:
parent
3544ad224f
commit
11f9f38d26
2 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue