mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
parent
502b3d3228
commit
850da9dd83
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue