BLI: rename Vector.empty to Vector.is_empty

This commit is contained in:
Jacques Lucke
2020-04-28 17:04:07 +02:00
parent c05ef1459c
commit a72eed7dd5
2 changed files with 8 additions and 8 deletions

View File

@@ -427,7 +427,7 @@ class Vector {
/**
* Returns true when the vector contains no elements, otherwise false.
*/
bool empty() const
bool is_empty() const
{
return m_begin == m_end;
}
@@ -438,7 +438,7 @@ class Vector {
*/
void remove_last()
{
BLI_assert(!this->empty());
BLI_assert(!this->is_empty());
m_end--;
destruct(m_end);
UPDATE_VECTOR_SIZE(this);
@@ -449,7 +449,7 @@ class Vector {
*/
T pop_last()
{
BLI_assert(!this->empty());
BLI_assert(!this->is_empty());
m_end--;
T value = std::move(*m_end);
destruct(m_end);