diff options
author | Julian Eisel <julian@blender.org> | 2020-11-07 22:13:37 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-11-11 21:08:56 +0300 |
commit | 44d8fafd7f0d4f17f1e4c79ec5f9b6154d9bd57c (patch) | |
tree | 5ee271cf60843dc3112142ac9f07825c0b6e06e1 /source/blender/blenlib/BLI_listbase_wrapper.hh | |
parent | ad0c387fdf6ed8bfdaedb7f40717ce1811c5680a (diff) |
UI Code Quality: Convert Outliner Blender File mode to new tree buiding design
See https://developer.blender.org/D9499.
Also:
* Add `space_outliner/tree/common.cc` for functions shared between display
modes.
* I had to add a cast to `ListBaseWrapper` to make it work with ID lists.
* Cleanup: Remove internal `Tree` alias for `ListBase`. That was more confusing
than helpful.
Diffstat (limited to 'source/blender/blenlib/BLI_listbase_wrapper.hh')
-rw-r--r-- | source/blender/blenlib/BLI_listbase_wrapper.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_listbase_wrapper.hh b/source/blender/blenlib/BLI_listbase_wrapper.hh index c31694d7d9e..ed2a2b5e5ec 100644 --- a/source/blender/blenlib/BLI_listbase_wrapper.hh +++ b/source/blender/blenlib/BLI_listbase_wrapper.hh @@ -56,7 +56,8 @@ template<typename T> class ListBaseWrapper { Iterator &operator++() { - current_ = current_->next; + /* Some types store next/prev using `void *`, so cast is necessary. */ + current_ = static_cast<T *>(current_->next); return *this; } |