From ac6703215ba5e152379173ba503f5ba3bd7e8a85 Mon Sep 17 00:00:00 2001 From: Thomas Braxton Date: Wed, 11 Jun 2014 08:40:44 -0500 Subject: 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 --- src/core/bufferfragment_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/bufferfragment_p.h') 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 -- cgit v1.2.1