Commit 818da796 authored by Ronan's avatar Ronan Committed by Ronan

fix(call-op): use correctly move constructor with setLocalBody

parent c37261d0
......@@ -80,7 +80,7 @@ int SalCallOp::setLocalBody (const Content &body) {
return setLocalBody(move(bodyCopy));
}
int SalCallOp::setLocalBody (const Content &&body) {
int SalCallOp::setLocalBody (Content &&body) {
if (!body.isValid())
return -1;
......@@ -101,7 +101,7 @@ int SalCallOp::setLocalBody (const Content &&body) {
mLocalMedia = desc;
}
mLocalBody = body;
mLocalBody = move(body);
return 0;
}
......
......@@ -33,7 +33,7 @@ public:
SalMediaDescription *getLocalMediaDescription () const { return mLocalMedia; }
int setLocalMediaDescription (SalMediaDescription *desc);
int setLocalBody (const Content &body);
int setLocalBody (const Content &&body);
int setLocalBody (Content &&body);
SalMediaDescription *getRemoteMediaDescription () { return mRemoteMedia; }
const Content &getRemoteBody () const { return mRemoteBody; }
......
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