summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2014-12-03 17:44:58 +0200
committerAlex Trotsenko <alex1973tr@gmail.com>2014-12-06 11:34:45 +0100
commit5f09f2bb3383bc51e3c965f555fac0c73dbe6dd8 (patch)
treeeb3e6429910fc7ec7b058e986888a4d4e524f453 /src/corelib
parent9501fef5da5f3e5f0d02d9e78d014a5462d27389 (diff)
Simplify QRingBuffer::isEmpty()
Also, make it consistent with size(). Change-Id: Ie5285e3c07ebba2d2eea05a80a75ce148da47d7b Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qringbuffer_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qringbuffer_p.h b/src/corelib/tools/qringbuffer_p.h
index 0066d3d1b6..58227d6755 100644
--- a/src/corelib/tools/qringbuffer_p.h
+++ b/src/corelib/tools/qringbuffer_p.h
@@ -174,7 +174,7 @@ public:
}
inline bool isEmpty() const {
- return tailBuffer == 0 && tail == 0;
+ return bufferSize == 0;
}
inline int getChar() {