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 /src/core/bufferfragment_p.h | |
| 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 'src/core/bufferfragment_p.h')
| -rw-r--r-- | src/core/bufferfragment_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/bufferfragment_p.h b/src/core/bufferfragment_p.h index 8d0931bc..e2154a59 100644 --- a/src/core/bufferfragment_p.h +++ b/src/core/bufferfragment_p.h @@ -40,7 +40,7 @@ class KConfigIniBackend::BufferFragment public: - BufferFragment() : d(0), len(0) + BufferFragment() : d(Q_NULLPTR), len(0) { } @@ -103,7 +103,7 @@ public: bool isEmpty() const { - return (len == 0); + return !len; } BufferFragment left(unsigned int size) const @@ -127,7 +127,7 @@ public: bool isNull() const { - return (d == 0); + return !d; } BufferFragment mid(unsigned int pos, int length = -1) const |
