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.
This commit is contained in:
Jacques Lucke
2020-07-08 22:29:10 +02:00
parent 403384998a
commit 31bc76ea4e
6 changed files with 26 additions and 26 deletions

View File

@@ -52,8 +52,8 @@ NodeTreeRef::NodeTreeRef(bNodeTree *btree) : btree_(btree)
RNA_pointer_create(&btree->id, &RNA_NodeSocket, bsocket, &socket.rna_);
}
input_sockets_.extend(node.inputs_);
output_sockets_.extend(node.outputs_);
input_sockets_.extend(node.inputs_.as_span());
output_sockets_.extend(node.outputs_.as_span());
node_mapping.add_new(bnode, &node);
}