aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfigloadertest.cpp
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-02-22 17:38:09 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-02-22 17:38:09 +0200
commit8bed00ab34e31f2b9c70026d418d923913325798 (patch)
treef289c15575415a36bc19c047a2037998e9b11ce8 /autotests/kconfigloadertest.cpp
parent186755fd56b58dc97250846c5305ef89f9487f86 (diff)
downloadkconfig-8bed00ab34e31f2b9c70026d418d923913325798.tar.gz
kconfig-8bed00ab34e31f2b9c70026d418d923913325798.tar.bz2
Run clang-format on all cpp/h files
NO_CHANGELOG
Diffstat (limited to 'autotests/kconfigloadertest.cpp')
-rw-r--r--autotests/kconfigloadertest.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/autotests/kconfigloadertest.cpp b/autotests/kconfigloadertest.cpp
index ab93c1da..17bfe403 100644
--- a/autotests/kconfigloadertest.cpp
+++ b/autotests/kconfigloadertest.cpp
@@ -7,20 +7,20 @@
#include <kconfig.h>
#include <kconfiggroup.h>
-#include <kconfigskeleton.h>
#include <kconfigloader.h>
+#include <kconfigskeleton.h>
Q_DECLARE_METATYPE(QList<int>)
static const QString s_testName(QStringLiteral("kconfigloadertest")); // clazy:exclude=non-pod-global-static
-#define GET_CONFIG_ITEM_VALUE(type, configName) \
- KConfigSkeletonItem* item = cl->findItem(s_testName, configName); \
- /* Check if we got back a valid item. */ \
- QVERIFY(item != nullptr); \
- /* Cast the item to the given type. */ \
- type typeItem = dynamic_cast<type>(item); \
- /* Make sure the cast was successful. */ \
+#define GET_CONFIG_ITEM_VALUE(type, configName) \
+ KConfigSkeletonItem *item = cl->findItem(s_testName, configName); \
+ /* Check if we got back a valid item. */ \
+ QVERIFY(item != nullptr); \
+ /* Cast the item to the given type. */ \
+ type typeItem = dynamic_cast<type>(item); \
+ /* Make sure the cast was successful. */ \
QVERIFY(typeItem != nullptr);
void ConfigLoaderTest::init()
@@ -191,4 +191,3 @@ void ConfigLoaderTest::ulongLongDefaultValue()
}
QTEST_MAIN(ConfigLoaderTest)
-