From fccdeb4e78d99cf106e77ff70589a51c48df7a27 Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Wed, 2 Aug 2023 15:04:15 +0300 Subject: [PATCH] Don't use variable after it is moved PR #19397. --- src/base/bittorrent/torrentdescriptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/torrentdescriptor.cpp b/src/base/bittorrent/torrentdescriptor.cpp index ef91682e4..bc5a4619a 100644 --- a/src/base/bittorrent/torrentdescriptor.cpp +++ b/src/base/bittorrent/torrentdescriptor.cpp @@ -195,7 +195,7 @@ void BitTorrent::TorrentDescriptor::setTorrentInfo(TorrentInfo torrentInfo) else { m_info = std::move(torrentInfo); - m_ltAddTorrentParams.ti = torrentInfo.nativeInfo(); + m_ltAddTorrentParams.ti = m_info->nativeInfo(); #ifdef QBT_USES_LIBTORRENT2 m_ltAddTorrentParams.info_hashes = m_ltAddTorrentParams.ti->info_hashes(); #else