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>2021-03-23 18:49:47 +0300
committerJacques Lucke <jacques@blender.org>2021-03-23 18:49:47 +0300
commit9a2e623372cbdbffc0daf25427fdf72e1cdb9b51 (patch)
tree32f5d3711deab2632d94e7a816170d5b43f8cc1d /source/blender/blenlib/BLI_virtual_array.hh
parent433fb9326ece7b0b84f2f548e43059881cca68b5 (diff)
Cleanup: use BLI_assert_unreachable in some places
Diffstat (limited to 'source/blender/blenlib/BLI_virtual_array.hh')
-rw-r--r--source/blender/blenlib/BLI_virtual_array.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_virtual_array.hh b/source/blender/blenlib/BLI_virtual_array.hh
index 0f6240bad95..f9b0aaa7de6 100644
--- a/source/blender/blenlib/BLI_virtual_array.hh
+++ b/source/blender/blenlib/BLI_virtual_array.hh
@@ -126,7 +126,7 @@ template<typename T> class VArray {
virtual Span<T> get_span_impl() const
{
- BLI_assert(false);
+ BLI_assert_unreachable();
return {};
}
@@ -139,7 +139,7 @@ template<typename T> class VArray {
{
/* Provide a default implementation, so that subclasses don't have to provide it. This method
* should never be called because `is_single_impl` returns false by default. */
- BLI_assert(false);
+ BLI_assert_unreachable();
return T();
}
};