diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index 043ae3c4a..33c8624ad 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -6091,7 +6091,8 @@ void SessionImpl::processTrackerStatuses() #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) updatedTrackerEntries[trackerEntry.url] = std::move(trackerEntry); #else - updatedTrackerEntries.emplace(trackerEntry.url, std::move(trackerEntry)); + const QString url = trackerEntry.url; + updatedTrackerEntries.emplace(url, std::move(trackerEntry)); #endif }