diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-08 23:29:10 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-08 23:30:23 +0300 |
commit | 31bc76ea4e4b83a728b88735bee48019125b4c54 (patch) | |
tree | a9a86d604b3cfb74edee2286ad309f0f43c0d445 /source/blender/functions/FN_generic_vector_array.hh | |
parent | 403384998a6bb5f428e15ced5503206b45032b25 (diff) |
Cleanup: remove unnecessary calls to as_span
This uses the new implicit conversions and constructors
that have been committed in the previous commit.
I tested these changes on Linux with gcc and on Windows.
Diffstat (limited to 'source/blender/functions/FN_generic_vector_array.hh')
-rw-r--r-- | source/blender/functions/FN_generic_vector_array.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/functions/FN_generic_vector_array.hh b/source/blender/functions/FN_generic_vector_array.hh index f28e94b34ee..2672484c184 100644 --- a/source/blender/functions/FN_generic_vector_array.hh +++ b/source/blender/functions/FN_generic_vector_array.hh @@ -78,7 +78,7 @@ class GVectorArray : NonCopyable, NonMovable { operator GVArraySpan() const { - return GVArraySpan(type_, starts_.as_span(), lengths_); + return GVArraySpan(type_, starts_, lengths_); } bool is_empty() const @@ -98,7 +98,7 @@ class GVectorArray : NonCopyable, NonMovable { Span<const void *> starts() const { - return starts_.as_span(); + return starts_; } Span<uint> lengths() const |