mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Clean up code
This commit is contained in:
@@ -74,9 +74,7 @@ qreal TorrentContentModelItem::progress() const
|
||||
{
|
||||
Q_ASSERT(!isRootItem());
|
||||
|
||||
if (m_size > 0) return m_progress;
|
||||
|
||||
return 1;
|
||||
return (m_size > 0) ? m_progress : 1;
|
||||
}
|
||||
|
||||
qulonglong TorrentContentModelItem::remaining() const
|
||||
@@ -89,7 +87,7 @@ qreal TorrentContentModelItem::availability() const
|
||||
{
|
||||
Q_ASSERT(!isRootItem());
|
||||
|
||||
return m_size > 0 ? m_availability : 0.;
|
||||
return (m_size > 0) ? m_availability : 0;
|
||||
}
|
||||
|
||||
int TorrentContentModelItem::priority() const
|
||||
|
||||
Reference in New Issue
Block a user