aboutsummaryrefslogtreecommitdiff
path: root/autotests/kdesktopfiletest.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-02-01 01:03:40 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-02-06 16:28:53 +0200
commit081f559031fed7cde755e006b226cf06f33bd0f8 (patch)
treef6334b19630d6d9df9074b493c5eaa3c7914954e /autotests/kdesktopfiletest.cpp
parent5d0dac047384e1f46e2de57f9b9ebf4f6fde0e26 (diff)
downloadkconfig-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/kdesktopfiletest.cpp')
-rw-r--r--autotests/kdesktopfiletest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/autotests/kdesktopfiletest.cpp b/autotests/kdesktopfiletest.cpp
index e1b9c997..34391489 100644
--- a/autotests/kdesktopfiletest.cpp
+++ b/autotests/kdesktopfiletest.cpp
@@ -267,10 +267,10 @@ void KDesktopFileTest::testTryExecWithAuthorizeAction()
void KDesktopFileTest::testLocateLocal_data()
{
- QString systemConfigLocation = QStandardPaths::standardLocations(QStandardPaths::GenericConfigLocation).last();
- QString writableConfigLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
- QString systemDataLocation = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).last();
- QString writableDataLocation = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
+ const QString systemConfigLocation = QStandardPaths::standardLocations(QStandardPaths::GenericConfigLocation).constLast();
+ const QString writableConfigLocation = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation);
+ const QString systemDataLocation = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation).constLast();
+ const QString writableDataLocation = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
QTest::addColumn<QString>("path");
QTest::addColumn<QString>("result");