Skip to content

Commit

Permalink
Don't use variable after it is moved
Browse files Browse the repository at this point in the history
PR #19397.
  • Loading branch information
glassez authored Aug 2, 2023
1 parent b35c2bc commit fccdeb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/bittorrent/torrentdescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fccdeb4

Please sign in to comment.