aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/locator/locator_test.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2017-02-09 14:00:07 +0100
committerChristian Stenger <christian.stenger@qt.io>2017-02-09 13:17:49 +0000
commite952b9d4f394f7261d72a4e75eb5f0bb46c4c1f4 (patch)
treedfdba896e0ada836322041559a833e2da8e12a2d /src/plugins/coreplugin/locator/locator_test.cpp
parent7f8e60b2898b9769f8249c15835b40a0e3bf1f74 (diff)
Replace occurrences of QStringList() << pattern
Change-Id: I598d8c06193c2e72435a76165d1afc9ee3465b48 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/locator/locator_test.cpp')
-rw-r--r--src/plugins/coreplugin/locator/locator_test.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/locator/locator_test.cpp b/src/plugins/coreplugin/locator/locator_test.cpp
index 8010823e669..b573dbd6b61 100644
--- a/src/plugins/coreplugin/locator/locator_test.cpp
+++ b/src/plugins/coreplugin/locator/locator_test.cpp
@@ -94,10 +94,9 @@ void Core::Internal::CorePlugin::test_basefilefilter_data()
const QChar pathSeparator = QDir::separator();
const MyTestDataDir testDir(QLatin1String("testdata_basic"));
- const QStringList testFiles = QStringList()
- << QDir::fromNativeSeparators(testDir.file(QLatin1String("file.cpp")))
- << QDir::fromNativeSeparators(testDir.file(QLatin1String("main.cpp")))
- << QDir::fromNativeSeparators(testDir.file(QLatin1String("subdir/main.cpp")));
+ const QStringList testFiles({ QDir::fromNativeSeparators(testDir.file("file.cpp")),
+ QDir::fromNativeSeparators(testDir.file("main.cpp")),
+ QDir::fromNativeSeparators(testDir.file("subdir/main.cpp")) });
QStringList testFilesShort;
foreach (const QString &file, testFiles)
testFilesShort << Utils::FileUtils::shortNativePath(Utils::FileName::fromString(file));