Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-04-28 18:04:07 +0300
committerJacques Lucke <jacques@blender.org>2020-04-28 18:04:07 +0300
commita72eed7dd5dec92e8d507a897f3f090fba66ef81 (patch)
tree615cfd3e6ad0799f5d2f7c1dfc7b1233ef83f235 /source/blender/blenlib/BLI_vector.hh
parentc05ef1459c68e0a37e645b1c32caeea0961edef5 (diff)
BLI: rename Vector.empty to Vector.is_empty
Diffstat (limited to 'source/blender/blenlib/BLI_vector.hh')
-rw-r--r--source/blender/blenlib/BLI_vector.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_vector.hh b/source/blender/blenlib/BLI_vector.hh
index 40dc876d5a5..49cf41c2005 100644
--- a/source/blender/blenlib/BLI_vector.hh
+++ b/source/blender/blenlib/BLI_vector.hh
@@ -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);