diff options
Diffstat (limited to 'autotests/kconfigloadertest.cpp')
| -rw-r--r-- | autotests/kconfigloadertest.cpp | 17 | 
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) - | 
