summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-10-13 18:32:24 +0200
committerVolker Krause <[email protected]>2017-10-13 18:32:24 +0200
commit467a773430fdbcafe01fdb6212109ae9dd188276 (patch)
treebb8ad0aeb1b08661bccb4cd0ce9d99a804dc3c47
parent0a8c66a9501e79e119804ec87d2767e5d4dc34f2 (diff)
Move QStringLiteral out of the Q_FOREACH here too
The lamba inside the QStringLiteral macro makes the CI fail on this.
-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 64d024b..5da4e1e 100644
--- a/templateparser/autotests/templateparserjobtest.cpp
+++ b/templateparser/autotests/templateparserjobtest.cpp
@@ -53,7 +53,8 @@ void TemplateParserJobTest::test_convertedHtml_data()
QTest::addColumn<QString>("referenceFileName");
QDir dir(QStringLiteral(MAIL_DATA_DIR));
- foreach (const QString &file, dir.entryList(QStringList(QLatin1String("plain*.mbox")), QDir::Files | QDir::Readable | QDir::NoSymLinks)) {
+ const auto l = dir.entryList(QStringList(QLatin1String("plain*.mbox")), QDir::Files | QDir::Readable | QDir::NoSymLinks);
+ foreach (const QString &file, l) {
QTest::newRow(file.toLatin1().constData()) << QString(dir.path() + QLatin1Char('/') + file) << QString(dir.path() + QLatin1Char('/') + file + QLatin1String(".html"));
}
}