Revise lambda specifiers

The `mutable` is redundant as nothing in the lambda body need to modify
captured variables.
This commit is contained in:
Chocobo1 2025-01-01 13:39:02 +08:00
commit 07da484489
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 2 additions and 2 deletions

View file

@ -6328,7 +6328,7 @@ void SessionImpl::loadStatistics()
void SessionImpl::updateTrackerEntryStatuses(lt::torrent_handle torrentHandle) void SessionImpl::updateTrackerEntryStatuses(lt::torrent_handle torrentHandle)
{ {
invokeAsync([this, torrentHandle = std::move(torrentHandle)]() mutable invokeAsync([this, torrentHandle = std::move(torrentHandle)]()
{ {
try try
{ {

View file

@ -3117,7 +3117,7 @@ void TorrentImpl::invokeAsync(Func func, Callback resultHandler) const
m_session->invokeAsync([session = m_session m_session->invokeAsync([session = m_session
, func = std::move(func) , func = std::move(func)
, resultHandler = std::move(resultHandler) , resultHandler = std::move(resultHandler)
, thisTorrent = QPointer<const TorrentImpl>(this)]() mutable , thisTorrent = QPointer<const TorrentImpl>(this)]()
{ {
session->invoke([result = func(), thisTorrent, resultHandler = std::move(resultHandler)] session->invoke([result = func(), thisTorrent, resultHandler = std::move(resultHandler)]
{ {