mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Replace post-increment with pre-increment
And post-decrement with pre-decrement.
This commit is contained in:
parent
40330c4606
commit
5ddbf9bba9
16 changed files with 58 additions and 58 deletions
|
@ -260,7 +260,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *mainWindow)
|
|||
|
||||
//Ensure that at least one column is visible at all times
|
||||
bool atLeastOne = false;
|
||||
for (unsigned int i = 0; i<TorrentModel::NB_COLUMNS; i++) {
|
||||
for (unsigned int i = 0; i < TorrentModel::NB_COLUMNS; ++i) {
|
||||
if (!isColumnHidden(i)) {
|
||||
atLeastOne = true;
|
||||
break;
|
||||
|
@ -272,7 +272,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *mainWindow)
|
|||
//When adding/removing columns between versions some may
|
||||
//end up being size 0 when the new version is launched with
|
||||
//a conf file from the previous version.
|
||||
for (unsigned int i = 0; i<TorrentModel::NB_COLUMNS; i++)
|
||||
for (unsigned int i = 0; i < TorrentModel::NB_COLUMNS; ++i)
|
||||
if ((columnWidth(i) <= 0) && (!isColumnHidden(i)))
|
||||
resizeColumnToContents(i);
|
||||
|
||||
|
@ -713,9 +713,9 @@ void TransferListWidget::displayDLHoSMenu(const QPoint&)
|
|||
actions.append(myAct);
|
||||
}
|
||||
int visibleCols = 0;
|
||||
for (unsigned int i = 0; i<TorrentModel::NB_COLUMNS; i++) {
|
||||
for (unsigned int i = 0; i < TorrentModel::NB_COLUMNS; ++i) {
|
||||
if (!isColumnHidden(i))
|
||||
visibleCols++;
|
||||
++visibleCols;
|
||||
|
||||
if (visibleCols > 1)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue