mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
Revise lambda specifiers
The `mutable` is redundant as nothing in the lambda body need to modify captured variables.
This commit is contained in:
parent
efe06f133d
commit
07da484489
2 changed files with 2 additions and 2 deletions
|
@ -6328,7 +6328,7 @@ void SessionImpl::loadStatistics()
|
|||
|
||||
void SessionImpl::updateTrackerEntryStatuses(lt::torrent_handle torrentHandle)
|
||||
{
|
||||
invokeAsync([this, torrentHandle = std::move(torrentHandle)]() mutable
|
||||
invokeAsync([this, torrentHandle = std::move(torrentHandle)]()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
@ -3117,7 +3117,7 @@ void TorrentImpl::invokeAsync(Func func, Callback resultHandler) const
|
|||
m_session->invokeAsync([session = m_session
|
||||
, func = std::move(func)
|
||||
, resultHandler = std::move(resultHandler)
|
||||
, thisTorrent = QPointer<const TorrentImpl>(this)]() mutable
|
||||
, thisTorrent = QPointer<const TorrentImpl>(this)]()
|
||||
{
|
||||
session->invoke([result = func(), thisTorrent, resultHandler = std::move(resultHandler)]
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue