Index: autotests/theme_test.cpp =================================================================== --- autotests/theme_test.cpp +++ autotests/theme_test.cpp @@ -70,7 +70,7 @@ void testThemes() { QVERIFY(!m_repo.themes().isEmpty()); - Q_FOREACH (const auto &theme, m_repo.themes()) { + for (const auto &theme : m_repo.themes()) { QVERIFY(theme.isValid()); QVERIFY(!theme.name().isEmpty()); QVERIFY(!theme.filePath().isEmpty()); Index: src/indexer/katehighlightingindexer.cpp =================================================================== --- src/indexer/katehighlightingindexer.cpp +++ src/indexer/katehighlightingindexer.cpp @@ -570,7 +570,7 @@ QVariantMap hl; // transfer text attributes - Q_FOREACH (const QString &attribute, textAttributes) { + for (const QString &attribute : textAttributes) { hl[attribute] = xml.attributes().value(attribute).toString(); }