mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 07:46:17 -07:00
Convert all foreach() to range-based for()
This commit is contained in:
parent
d668a4fe6d
commit
6b1d26d555
64 changed files with 326 additions and 292 deletions
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
|
||||
#include "base/global.h"
|
||||
#include "base/net/downloadmanager.h"
|
||||
#include "base/settingsstorage.h"
|
||||
#include "cookiesmodel.h"
|
||||
|
@ -100,6 +101,6 @@ void CookiesDialog::onButtonDeleteClicked()
|
|||
}
|
||||
);
|
||||
|
||||
for (const QModelIndex &idx : idxs)
|
||||
for (const QModelIndex &idx : qAsConst(idxs))
|
||||
m_cookiesModel->removeRow(idx.row());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue