diff options
Diffstat (limited to 'autotests/kconfig_compiler')
-rw-r--r-- | autotests/kconfig_compiler/kconfigcompiler_test.cpp | 4 | ||||
-rw-r--r-- | autotests/kconfig_compiler/test4main.cpp | 2 | ||||
-rw-r--r-- | autotests/kconfig_compiler/test_emptyentries_main.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/autotests/kconfig_compiler/kconfigcompiler_test.cpp b/autotests/kconfig_compiler/kconfigcompiler_test.cpp index 6afc0096..014bc0f3 100644 --- a/autotests/kconfig_compiler/kconfigcompiler_test.cpp +++ b/autotests/kconfig_compiler/kconfigcompiler_test.cpp @@ -119,8 +119,8 @@ void KConfigCompiler_Test::testBaselineComparison() qWarning() << "Failed to open" << fileRef.fileName() << "(" << testName << ".ref )"; QFAIL("Can't open file for comparison"); } - QString content = file.readAll(); - QString contentRef = fileRef.readAll(); + const QByteArray content = file.readAll(); + const QByteArray contentRef = fileRef.readAll(); if (content != contentRef) { appendFileDiff(fileRef.fileName(), file.fileName()); diff --git a/autotests/kconfig_compiler/test4main.cpp b/autotests/kconfig_compiler/test4main.cpp index 2d48e440..8792842f 100644 --- a/autotests/kconfig_compiler/test4main.cpp +++ b/autotests/kconfig_compiler/test4main.cpp @@ -19,7 +19,7 @@ int main(int argc, char **argv) group.writeEntry(QStringLiteral("foo bar"), QStringLiteral("Value")); } Test4 *t = Test4::self(); - bool ok = QFile::exists(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/test4rc"); + const bool ok = QFile::exists(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1String{"/test4rc"}); if (!ok) { qWarning() << "config file was not created!"; } diff --git a/autotests/kconfig_compiler/test_emptyentries_main.cpp b/autotests/kconfig_compiler/test_emptyentries_main.cpp index 18c750a5..5dbce8e4 100644 --- a/autotests/kconfig_compiler/test_emptyentries_main.cpp +++ b/autotests/kconfig_compiler/test_emptyentries_main.cpp @@ -11,7 +11,7 @@ int main(int argc, char **argv) { QGuiApplication app(argc, argv); Q_UNUSED(app); - QMakeBuilderSettings::instance("abc"); + QMakeBuilderSettings::instance(QStringLiteral("abc")); auto *t = QMakeBuilderSettings::self(); delete t; return 0; |