summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-10-13 18:57:59 +0200
committerVolker Krause <[email protected]>2017-10-13 18:57:59 +0200
commitece5d7d4e123870e3aaaafbb12c524d2ca3a6263 (patch)
treeac7f6ce4eb45a5919ec39fda9224929cb67b3449
parent467a773430fdbcafe01fdb6212109ae9dd188276 (diff)
Fix one more QStringLiteral lambda inside Q_FOREACH breaking the CI
-rw-r--r--templateparser/autotests/templateparserjobtest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/templateparser/autotests/templateparserjobtest.cpp b/templateparser/autotests/templateparserjobtest.cpp
index 5da4e1e..a0576d4 100644
--- a/templateparser/autotests/templateparserjobtest.cpp
+++ b/templateparser/autotests/templateparserjobtest.cpp
@@ -106,7 +106,8 @@ void TemplateParserJobTest::test_replyPlain_data()
QTest::addColumn<QString>("referenceFileName");
QDir dir(QStringLiteral(MAIL_DATA_DIR));
- foreach (const QString &file, dir.entryList(QStringList(QStringLiteral("*.mbox")), QDir::Files | QDir::Readable | QDir::NoSymLinks)) {
+ const auto l = dir.entryList(QStringList(QStringLiteral("*.mbox")), QDir::Files | QDir::Readable | QDir::NoSymLinks);
+ foreach (const QString &file, l) {
const QString expectedFile = dir.path() + QLatin1Char('/') + file + QStringLiteral(".plain.reply");
if (!QFile::exists(expectedFile)) {
continue;