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:
parent
9501fef5da
commit
5f09f2bb33
@ -174,7 +174,7 @@ public:
|
||||
}
|
||||
|
||||
inline bool isEmpty() const {
|
||||
return tailBuffer == 0 && tail == 0;
|
||||
return bufferSize == 0;
|
||||
}
|
||||
|
||||
inline int getChar() {
|
||||
|
Loading…
Reference in New Issue
Block a user