diff options
author | Jacques Lucke <jacques@blender.org> | 2021-12-20 12:46:25 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-12-20 12:46:43 +0300 |
commit | deb3d566a5ab3ee20e9e41bdb4835cd0f11928ed (patch) | |
tree | 7e5d52ce10e43caaab1eba2126dc4be90bf12b69 /source/blender/blenlib/BLI_vector.hh | |
parent | ffd1a7d8c81c65e75c8a0baf45d84375149d5387 (diff) |
BLI: fix Vector.prepend declaration
Using `&&` there was a typo. With `&&` the `prepend` method
could not be called with a const reference as argument.
Diffstat (limited to 'source/blender/blenlib/BLI_vector.hh')
-rw-r--r-- | source/blender/blenlib/BLI_vector.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_vector.hh b/source/blender/blenlib/BLI_vector.hh index d2b94a6d8ef..4ac48f259cf 100644 --- a/source/blender/blenlib/BLI_vector.hh +++ b/source/blender/blenlib/BLI_vector.hh @@ -637,7 +637,7 @@ class Vector { * Insert values at the beginning of the vector. The has to move all the other elements, so it * has a linear running time. */ - void prepend(const T &&value) + void prepend(const T &value) { this->insert(0, value); } |