mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-03-01 07:08:26 +00:00
parent
502b3d3228
commit
850da9dd83
@ -3003,7 +3003,7 @@ void SessionImpl::invokeAsync(std::function<void ()> func)
|
||||
bool SessionImpl::downloadMetadata(const TorrentDescriptor &torrentDescr)
|
||||
{
|
||||
Q_ASSERT(!torrentDescr.info().has_value());
|
||||
if (Q_UNLIKELY(torrentDescr.info().has_value()))
|
||||
if (torrentDescr.info().has_value()) [[unlikely]]
|
||||
return false;
|
||||
|
||||
const InfoHash infoHash = torrentDescr.infoHash();
|
||||
|
@ -692,7 +692,7 @@ void AddNewTorrentDialog::contentLayoutChanged()
|
||||
void AddNewTorrentDialog::saveTorrentFile()
|
||||
{
|
||||
Q_ASSERT(hasMetadata());
|
||||
if (Q_UNLIKELY(!hasMetadata()))
|
||||
if (!hasMetadata()) [[unlikely]]
|
||||
return;
|
||||
|
||||
const auto torrentInfo = *m_torrentDescr.info();
|
||||
|
Loading…
x
Reference in New Issue
Block a user