diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-23 18:49:47 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-23 18:49:47 +0300 |
commit | 9a2e623372cbdbffc0daf25427fdf72e1cdb9b51 (patch) | |
tree | 32f5d3711deab2632d94e7a816170d5b43f8cc1d /source/blender/blenlib | |
parent | 433fb9326ece7b0b84f2f548e43059881cca68b5 (diff) |
Cleanup: use BLI_assert_unreachable in some places
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_virtual_array.hh | 4 |
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(); } }; |