Replace Q_UNLIKELY with [[unlikely]] attribute

PR #19445.
This commit is contained in:
Victor Chernyakin
2023-08-10 22:54:26 -07:00
committed by GitHub
parent 502b3d3228
commit 850da9dd83
2 changed files with 2 additions and 2 deletions

View File

@@ -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();