mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Replace single-character string with character literal
Also remove unnecessary dynamic allocation.
This commit is contained in:
parent
7e3cf99bb9
commit
0217d5b4c0
32 changed files with 96 additions and 96 deletions
|
@ -371,9 +371,9 @@ void TrackerListWidget::loadTrackers()
|
|||
item->setText(COL_PEERS, QString::number(entry.nativeEntry().scrape_incomplete > 0 ? entry.nativeEntry().scrape_incomplete : 0));
|
||||
item->setText(COL_DOWNLOADED, QString::number(entry.nativeEntry().scrape_downloaded > 0 ? entry.nativeEntry().scrape_downloaded : 0));
|
||||
#else
|
||||
item->setText(COL_SEEDS, "0");
|
||||
item->setText(COL_PEERS, "0");
|
||||
item->setText(COL_DOWNLOADED, "0");
|
||||
item->setText(COL_SEEDS, '0');
|
||||
item->setText(COL_PEERS, '0');
|
||||
item->setText(COL_DOWNLOADED, '0');
|
||||
#endif
|
||||
|
||||
item->setTextAlignment(COL_TIER, (Qt::AlignRight | Qt::AlignVCenter));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue