Skip to content

Commit

Permalink
[transfer-engine] Move instead of copy when possible. JB#61927
Browse files Browse the repository at this point in the history
Sugggested by Coverity (CID 449636, CID 449638).
  • Loading branch information
martyone committed Apr 11, 2024
1 parent 61e6d03 commit 156a226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions declarative/declarativetransfermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ void TransferModel::run()

locker.relock();

m_asyncRows = rows;
m_asyncRows = std::move(rows);
m_asyncTransfersInProgress = activeTransfers;

if (!m_asyncPending) {
m_asyncErrorString = errorString;
m_asyncErrorString = std::move(errorString);
m_asyncStatus = ok ? Finished : Error;
}
} else {
Expand Down

0 comments on commit 156a226

Please sign in to comment.