MT#59962 SBC: `reloadProfiles()` use move for profiles

For newly created call profiles use the move operation
instead of copy one.

Fixes:

    CID 542292:Variable copied when it could be moved (COPY_INSTEAD_OF_MOVE)

Change-Id: Ia130fc3e32d23e63f3d41fc6261e90ecf742ecf7
master
Donat Zenichev 1 month ago
parent 0f0ad41759
commit 987e4efee4

@ -524,7 +524,7 @@ void SBCFactory::reloadProfiles(const AmArg& args, AmArg& ret) {
profile_list.push(p);
}
if (!failed) {
call_profiles = new_call_profiles;
call_profiles = std::move(new_call_profiles);
ret.push(200);
} else {
ret.push(500);

Loading…
Cancel
Save