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

PIM: port foreach -> range-based for

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

View File

@ -242,7 +242,9 @@ QString PIM_Handler::matchingJsTable() const
QHashIterator<PI_Type, QStringList> i(m_infoMatches);
while (i.hasNext()) {
i.next();
foreach (const QString &value, i.value()) {
const auto ivalues = i.value();
for (const QString &value : ivalues) {
QString key = m_allInfo.value(i.key());
key.replace(QL1C('"'), QL1S("\\\""));
values.append(QSL("\"%1\":\"%2\",").arg(value, key));