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/intern | |
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/intern')
-rw-r--r-- | source/blender/functions/intern/multi_function_network_optimization.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/functions/intern/multi_function_network_optimization.cc b/source/blender/functions/intern/multi_function_network_optimization.cc index 690c3330045..f3618612bc5 100644 --- a/source/blender/functions/intern/multi_function_network_optimization.cc +++ b/source/blender/functions/intern/multi_function_network_optimization.cc @@ -287,14 +287,14 @@ void constant_folding(MFNetwork &network, ResourceCollector &resources) } Array<MFOutputSocket *> folded_sockets = compute_constant_sockets_and_add_folded_nodes( - network, inputs_to_fold.as_span(), resources); + network, inputs_to_fold, resources); for (uint i : inputs_to_fold.index_range()) { MFOutputSocket &original_socket = *inputs_to_fold[i]->origin(); network.relink(original_socket, *folded_sockets[i]); } - network.remove(temporary_nodes.as_span()); + network.remove(temporary_nodes); } /** \} */ |