Simplify QRingBuffer::isEmpty()

Also, make it consistent with size().

Change-Id: Ie5285e3c07ebba2d2eea05a80a75ce148da47d7b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
Alex Trotsenko 2014-12-03 17:44:58 +02:00
parent 9501fef5da
commit 5f09f2bb33

View File

@ -174,7 +174,7 @@ public:
}
inline bool isEmpty() const {
return tailBuffer == 0 && tail == 0;
return bufferSize == 0;
}
inline int getChar() {