diff options
author | Montel Laurent <montel@kde.org> | 2017-11-30 13:36:08 +0100 |
---|---|---|
committer | Montel Laurent <montel@kde.org> | 2017-11-30 13:36:08 +0100 |
commit | ee2b394599ffe1242e3b7ae7d40b3469485dcd97 (patch) | |
tree | b3158f3dc11d26bc5676015b4c56e55a85f4c71b /autotests/test_kconf_update.cpp | |
parent | 61995dafce78c1065d4eacba81673a7959a96cc9 (diff) | |
download | kconfig-ee2b394599ffe1242e3b7ae7d40b3469485dcd97.tar.gz kconfig-ee2b394599ffe1242e3b7ae7d40b3469485dcd97.tar.bz2 |
Fix some clazy warning
Diffstat (limited to 'autotests/test_kconf_update.cpp')
-rw-r--r-- | autotests/test_kconf_update.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<QTemporaryFile> 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<QTemporaryFile> 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); |