mirror of
https://github.com/matrix-construct/construct
synced 2024-06-11 14:38:57 +02:00
ircd::buffer: Use buffer::empty() rather than buffer::null() for bool operators.
This commit is contained in:
parent
becd247de3
commit
5fae1f36cf
|
@ -113,7 +113,7 @@ ircd::buffer::unique_buffer<buffer>::operator
|
|||
bool()
|
||||
const
|
||||
{
|
||||
return !this->buffer::null();
|
||||
return !this->buffer::empty();
|
||||
}
|
||||
|
||||
template<class buffer>
|
||||
|
@ -121,5 +121,5 @@ bool
|
|||
ircd::buffer::unique_buffer<buffer>::operator!()
|
||||
const
|
||||
{
|
||||
return this->buffer::null();
|
||||
return this->buffer::empty();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue