diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-01 01:03:40 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-06 16:28:53 +0200 |
commit | 081f559031fed7cde755e006b226cf06f33bd0f8 (patch) | |
tree | f6334b19630d6d9df9074b493c5eaa3c7914954e /autotests/test_kconf_update.cpp | |
parent | 5d0dac047384e1f46e2de57f9b9ebf4f6fde0e26 (diff) | |
download | kconfig-081f559031fed7cde755e006b226cf06f33bd0f8.tar.gz kconfig-081f559031fed7cde755e006b226cf06f33bd0f8.tar.bz2 |
General code cleanup
Fix some clazy warnings, and some other minor code optimisations.
NO_CHANGELOG
Diffstat (limited to 'autotests/test_kconf_update.cpp')
-rw-r--r-- | autotests/test_kconf_update.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/autotests/test_kconf_update.cpp b/autotests/test_kconf_update.cpp index 52292083..ba716f28 100644 --- a/autotests/test_kconf_update.cpp +++ b/autotests/test_kconf_update.cpp @@ -331,9 +331,7 @@ void TestKConfUpdate::test() std::unique_ptr<QTemporaryFile> updFile(writeUpdFile(updContent)); runKConfUpdate(updFile->fileName()); - QString updateInfo = QStringLiteral("%1:%2") - .arg(updFile->fileName().section('/', -1)) - .arg(QTest::currentDataTag()); + QString updateInfo = QStringLiteral("%1:%2").arg(updFile->fileName().section(QLatin1Char('/'), -1), QTest::currentDataTag()); QString newConfContentAfter = readFile(newConfPath); if (shouldUpdateWork) { @@ -627,9 +625,7 @@ void TestKConfUpdate::testScript() runKConfUpdate(updFile->fileName()); - QString updateInfo = QStringLiteral("%1:%2") - .arg(updFile->fileName().section('/', -1)) - .arg(QTest::currentDataTag()); + QString updateInfo = QStringLiteral("%1:%2").arg(updFile->fileName().section(QLatin1Char('/'), -1), QTest::currentDataTag()); QString newConfContent = readFile(confPath); expectedNewConfContent = expectedNewConfContent.arg(updateInfo); QCOMPARE(newConfContent, expectedNewConfContent); |