Browse Source

Fix coding style

adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
4381739b6d
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/gui/torrentcontentmodelitem.cpp

4
src/gui/torrentcontentmodelitem.cpp

@ -112,7 +112,6 @@ QString TorrentContentModelItem::displayData(const int column) const @@ -112,7 +112,6 @@ QString TorrentContentModelItem::displayData(const int column) const
case COL_NAME:
return m_name;
case COL_PRIO:
{
switch (m_priority)
{
case BitTorrent::DownloadPriority::Mixed:
@ -126,7 +125,6 @@ QString TorrentContentModelItem::displayData(const int column) const @@ -126,7 +125,6 @@ QString TorrentContentModelItem::displayData(const int column) const
default:
return tr("Normal", "Normal (priority)");
}
}
case COL_PROGRESS:
{
const qreal progress = m_progress * 100;
@ -147,7 +145,7 @@ QString TorrentContentModelItem::displayData(const int column) const @@ -147,7 +145,7 @@ QString TorrentContentModelItem::displayData(const int column) const
const QString value = (avail >= 1)
? QString::fromLatin1("100")
: Utils::String::fromDouble((avail * 100), 1);
return QString {value + C_THIN_SPACE + QLatin1Char('%')};
return {value + C_THIN_SPACE + QLatin1Char('%')};
}
default:
Q_ASSERT(false);

Loading…
Cancel
Save