diff options
Diffstat (limited to 'source/blender/blenlib/BLI_listbase_wrapper.hh')
-rw-r--r-- | source/blender/blenlib/BLI_listbase_wrapper.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_listbase_wrapper.hh b/source/blender/blenlib/BLI_listbase_wrapper.hh index 25e029a5616..a32243bc411 100644 --- a/source/blender/blenlib/BLI_listbase_wrapper.hh +++ b/source/blender/blenlib/BLI_listbase_wrapper.hh @@ -42,7 +42,7 @@ template<typename T> class ListBaseWrapper { Iterator &operator++() { - /* Some types store next/prev using `void *`, so cast is necessary. */ + /* Some types store `next/prev` using `void *`, so cast is necessary. */ current_ = static_cast<T *>(current_->next); return *this; } @@ -50,7 +50,7 @@ template<typename T> class ListBaseWrapper { Iterator operator++(int) { Iterator iterator = *this; - ++*this; + ++(*this); return iterator; } |