Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
11f9f38d
Commit
11f9f38d
authored
Oct 02, 2017
by
Ronan
Browse files
fix(Content): use move operator correctly
parent
3544ad22
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/content/content.cpp
View file @
11f9f38d
...
...
@@ -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
)
{
...
...
src/content/content.h
View file @
11f9f38d
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment