1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

session: port foreach -> range-based for

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-12-30 20:40:50 +01:00
parent da73eb5c77
commit aa039b8579
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -45,10 +45,12 @@ QJsonArray RecoveryJsObject::restoreData() const
QJsonArray out;
int i = 0;
Q_FOREACH (const BrowserWindow::SavedWindow &w, m_manager->restoreData().windows) {
const auto windows = m_manager->restoreData().windows;
for (const BrowserWindow::SavedWindow &w : windows) {
int j = 0;
QJsonArray tabs;
Q_FOREACH (const WebTab::SavedTab &t, w.tabs) {
const auto windowTabs = w.tabs;
for (const WebTab::SavedTab &t : windowTabs) {
const QIcon icon = t.icon.isNull() ? IconProvider::emptyWebIcon() : t.icon;
QJsonObject tab;
tab[QSL("tab")] = j;