diff --git a/src/base/bittorrent/customstorage.cpp b/src/base/bittorrent/customstorage.cpp index 2d25e45a3..d6f25cd1b 100644 --- a/src/base/bittorrent/customstorage.cpp +++ b/src/base/bittorrent/customstorage.cpp @@ -92,7 +92,7 @@ bool CustomDiskIOThread::async_write(lt::storage_index_t storage, const lt::peer , const char *buf, std::shared_ptr diskObserver , std::function handler, lt::disk_job_flags_t flags) { - return m_nativeDiskIO->async_write(storage, peerRequest, buf, diskObserver, std::move(handler), flags); + return m_nativeDiskIO->async_write(storage, peerRequest, buf, std::move(diskObserver), std::move(handler), flags); } void CustomDiskIOThread::async_hash(lt::storage_index_t storage, lt::piece_index_t piece diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index 33c8624ad..75756181b 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -1318,7 +1318,7 @@ void SessionImpl::processNextResumeData(ResumeSessionContext *context) std::shared_ptr ti = resumeData.ltAddTorrentParams.ti; resumeData = *loadPreferredResumeDataResult; if (!resumeData.ltAddTorrentParams.ti) - resumeData.ltAddTorrentParams.ti = ti; + resumeData.ltAddTorrentParams.ti = std::move(ti); } } } diff --git a/src/base/digest32.h b/src/base/digest32.h index 1be904a2f..b1c903c62 100644 --- a/src/base/digest32.h +++ b/src/base/digest32.h @@ -84,7 +84,7 @@ private: class Data; explicit Digest32(QSharedDataPointer dataPtr) - : m_dataPtr {dataPtr} + : m_dataPtr {std::move(dataPtr)} { }