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:
authorClément Foucault <foucault.clem@gmail.com>2022-11-13 18:48:30 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-11-13 18:48:30 +0300
commitbd622aef3c2f250719056dd5fc105136aa800e78 (patch)
tree42364a15433e46ace5853c551d0255f64f7447f9
parentc255be2d02393d538be1ef0dbf2cc1f7279e57ed (diff)
BLI: Fix `ListBaseWrapper::get` wrong return type
-rw-r--r--source/blender/blenlib/BLI_listbase_wrapper.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_listbase_wrapper.hh b/source/blender/blenlib/BLI_listbase_wrapper.hh
index a32243bc411..2d30a372439 100644
--- a/source/blender/blenlib/BLI_listbase_wrapper.hh
+++ b/source/blender/blenlib/BLI_listbase_wrapper.hh
@@ -75,7 +75,7 @@ template<typename T> class ListBaseWrapper {
return Iterator(listbase_, nullptr);
}
- T get(uint index) const
+ T *get(uint index) const
{
void *ptr = BLI_findlink(listbase_, index);
BLI_assert(ptr);