diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-03-30 13:27:53 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-03-30 17:03:43 +0300 |
commit | 04a92297ddfb86b1766733461f01104bcbd5b38e (patch) | |
tree | de724e43767f0bd01b51517c9a4684a2b9c5271c /source/blender/compositor/nodes/COM_RenderLayersNode.cc | |
parent | d4e76712d4fdf55815cf59df52ffa35df84ed09a (diff) |
Cleanup: Replace std::vector with blender::Vector.
Diffstat (limited to 'source/blender/compositor/nodes/COM_RenderLayersNode.cc')
-rw-r--r-- | source/blender/compositor/nodes/COM_RenderLayersNode.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/compositor/nodes/COM_RenderLayersNode.cc b/source/blender/compositor/nodes/COM_RenderLayersNode.cc index eead775b192..851d0366546 100644 --- a/source/blender/compositor/nodes/COM_RenderLayersNode.cc +++ b/source/blender/compositor/nodes/COM_RenderLayersNode.cc @@ -74,9 +74,8 @@ void RenderLayersNode::testRenderLink(NodeConverter &converter, missingRenderLink(converter); return; } - const int num_outputs = this->getNumberOfOutputSockets(); - for (int i = 0; i < num_outputs; i++) { - NodeOutput *output = this->getOutputSocket(i); + + for (NodeOutput *output : getOutputSockets()) { NodeImageLayer *storage = (NodeImageLayer *)output->getbNodeSocket()->storage; RenderPass *rpass = (RenderPass *)BLI_findstring( &rl->passes, storage->pass_name, offsetof(RenderPass, name)); @@ -155,9 +154,7 @@ void RenderLayersNode::missingSocketLink(NodeConverter &converter, NodeOutput *o void RenderLayersNode::missingRenderLink(NodeConverter &converter) const { - const int num_outputs = this->getNumberOfOutputSockets(); - for (int i = 0; i < num_outputs; i++) { - NodeOutput *output = this->getOutputSocket(i); + for (NodeOutput *output : outputs) { missingSocketLink(converter, output); } } |