Browse Source
Transfer ownership of the temporary fixed URI into DeviceScan and the newly created shared pointer into the scan list instead of copying them. Neither object is used after the transfer, so moving avoids unnecessary string and shared_ptr copies and makes the intended ownership transfer explicit. This fixes Coverity CIDs 652268 and 652358 (COPY_INSTEAD_OF_MOVE). Signed-off-by: Robin Getz <rgetz503@gmail.com>chirpmodem-v8.0.0
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue