diff options
| author | Thomas Braxton <kde.braxton@gmail.com> | 2014-06-11 08:40:44 -0500 | 
|---|---|---|
| committer | Thomas Braxton <kde.braxton@gmail.com> | 2014-06-12 17:14:16 -0500 | 
| commit | ac6703215ba5e152379173ba503f5ba3bd7e8a85 (patch) | |
| tree | d3072f5a03ec66569d4e2f6770fbaa06090cd98f /autotests/kconfigloadertest.cpp | |
| parent | 0ed55dfa5d25bdcbef24f1b06be34467b620ae99 (diff) | |
| download | kconfig-ac6703215ba5e152379173ba503f5ba3bd7e8a85.tar.gz kconfig-ac6703215ba5e152379173ba503f5ba3bd7e8a85.tar.bz2  | |
Simple Cleanups
- use Q_NULLPTR instead of 0 or NULL
- simplify some foreach loops
- use QStringLiteral in a few places
- added a few consts
REVIEW: 118666
Diffstat (limited to 'autotests/kconfigloadertest.cpp')
| -rw-r--r-- | autotests/kconfigloadertest.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/autotests/kconfigloadertest.cpp b/autotests/kconfigloadertest.cpp index 451d636e..d52f5cbf 100644 --- a/autotests/kconfigloadertest.cpp +++ b/autotests/kconfigloadertest.cpp @@ -30,11 +30,11 @@ Q_DECLARE_METATYPE(QList<int>)  #define GET_CONFIG_ITEM_VALUE(type, configName) \      KConfigSkeletonItem* item = cl->findItem(TEST_NAME, configName); \      /* Check if we got back a valid item. */ \ -    QVERIFY(item != 0); \ +    QVERIFY(item != Q_NULLPTR); \      /* Cast the item to the given type. */ \      type typeItem = dynamic_cast<type>(item); \      /* Make sure the cast was successful. */ \ -    QVERIFY(typeItem != 0); +    QVERIFY(typeItem != Q_NULLPTR);  void ConfigLoaderTest::init()  {  | 
