aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp2
-rw-r--r--tests/auto/qml/codemodel/ecmascript7/tst_ecmascript7.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp b/tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp
index 71e5d50735d..79ce9cec1be 100644
--- a/tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp
+++ b/tests/auto/qml/codemodel/dependencies/tst_dependencies.cpp
@@ -112,7 +112,7 @@ private:
void tst_Dependencies::initTestCase()
{
- m_path = QLatin1Literal(TESTSRCDIR "/samples");
+ m_path = QLatin1String(TESTSRCDIR "/samples");
m_basePaths.append(QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath));
diff --git a/tests/auto/qml/codemodel/ecmascript7/tst_ecmascript7.cpp b/tests/auto/qml/codemodel/ecmascript7/tst_ecmascript7.cpp
index f178338bd16..735daa04f71 100644
--- a/tests/auto/qml/codemodel/ecmascript7/tst_ecmascript7.cpp
+++ b/tests/auto/qml/codemodel/ecmascript7/tst_ecmascript7.cpp
@@ -134,13 +134,13 @@ void tst_Ecmascript::initTestCase()
QDirIterator it(sampledir, QDirIterator::Subdirectories);
- QStringList skipList = readSkipList(sampledir, QLatin1Literal("skip.txt"));
+ QStringList skipList = readSkipList(sampledir, QLatin1String("skip.txt"));
while (it.hasNext()) {
QString path = it.next();
if (skipList.contains(path))
continue;
QFileInfo f(path);
- if (f.isFile() && f.suffix() == QLatin1Literal("js"))
+ if (f.isFile() && f.suffix() == QLatin1String("js"))
m_files << f;
}