From ee2b394599ffe1242e3b7ae7d40b3469485dcd97 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Thu, 30 Nov 2017 13:36:08 +0100 Subject: Fix some clazy warning --- autotests/test_kconf_update.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'autotests/test_kconf_update.cpp') diff --git a/autotests/test_kconf_update.cpp b/autotests/test_kconf_update.cpp index 41806194..33530611 100644 --- a/autotests/test_kconf_update.cpp +++ b/autotests/test_kconf_update.cpp @@ -325,7 +325,7 @@ void TestKConfUpdate::test() QFETCH(bool, shouldUpdateWork); // Prepend Version and the Id= field to the upd content - const QString header = QString("Id=%1\n").arg(QTest::currentDataTag()); + const QString header = QStringLiteral("Id=%1\n").arg(QTest::currentDataTag()); updContent = header + updContent; if (useVersion5) updContent.prepend("Version=5\n"); @@ -341,7 +341,7 @@ void TestKConfUpdate::test() QSharedPointer updFile(writeUpdFile(updContent)); runKConfUpdate(updFile->fileName()); - QString updateInfo = QString("%1:%2") + QString updateInfo = QStringLiteral("%1:%2") .arg(updFile->fileName().section('/', -1)) .arg(QTest::currentDataTag()); @@ -557,7 +557,7 @@ void TestKConfUpdate::testScript_data() "new=value3\n" ; - if (QStandardPaths::findExecutable("sed").isEmpty()) { + if (QStandardPaths::findExecutable(QStringLiteral("sed")).isEmpty()) { qWarning("sed executable not found, cannot run all tests!"); } else { QTest::newRow("filter") @@ -610,7 +610,7 @@ void TestKConfUpdate::testScript_data() void TestKConfUpdate::testScript() { - if (QStandardPaths::findExecutable("sh").isEmpty()) { + if (QStandardPaths::findExecutable(QStringLiteral("sh")).isEmpty()) { QSKIP("Could not find sh executable, cannot run test"); return; } @@ -621,7 +621,7 @@ void TestKConfUpdate::testScript() QFETCH(QString, expectedNewConfContent); // Prepend the Version and Id= field to the upd content - updContent = QString("Version=5\nId=%1\n").arg(QTest::currentDataTag()) + updContent; + updContent = QStringLiteral("Version=5\nId=%1\n").arg(QTest::currentDataTag()) + updContent; QSharedPointer updFile(writeUpdFile(updContent)); @@ -637,7 +637,7 @@ void TestKConfUpdate::testScript() runKConfUpdate(updFile->fileName()); - QString updateInfo = QString("%1:%2") + QString updateInfo = QStringLiteral("%1:%2") .arg(updFile->fileName().section('/', -1)) .arg(QTest::currentDataTag()); QString newConfContent = readFile(confPath); -- cgit v1.2.1