aboutsummaryrefslogtreecommitdiff
path: root/src/core/bufferfragment_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/bufferfragment_p.h')
-rw-r--r--src/core/bufferfragment_p.h6
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