mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
session: port foreach -> range-based for
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
da73eb5c77
commit
aa039b8579
|
@ -45,10 +45,12 @@ QJsonArray RecoveryJsObject::restoreData() const
|
||||||
QJsonArray out;
|
QJsonArray out;
|
||||||
|
|
||||||
int i = 0;
|
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;
|
int j = 0;
|
||||||
QJsonArray tabs;
|
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;
|
const QIcon icon = t.icon.isNull() ? IconProvider::emptyWebIcon() : t.icon;
|
||||||
QJsonObject tab;
|
QJsonObject tab;
|
||||||
tab[QSL("tab")] = j;
|
tab[QSL("tab")] = j;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user