diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-07 14:52:53 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-07 14:55:03 +0300 |
commit | 331f8500569df9b3b2aa776c5bcaad7b99c57295 (patch) | |
tree | 93547846177ff3415f9564ca54cb8f13433755cf /source/blender/compositor | |
parent | 11abeae99fdbfc8f047c4a3c1d2b9b8c47883516 (diff) |
Cleanup: redundant parenthesis
Diffstat (limited to 'source/blender/compositor')
-rw-r--r-- | source/blender/compositor/intern/COM_Node.cc | 4 | ||||
-rw-r--r-- | source/blender/compositor/intern/COM_NodeOperationBuilder.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/intern/COM_Node.cc b/source/blender/compositor/intern/COM_Node.cc index 471bb29d263..c1a8740d8ea 100644 --- a/source/blender/compositor/intern/COM_Node.cc +++ b/source/blender/compositor/intern/COM_Node.cc @@ -53,10 +53,10 @@ Node::Node(bNode *editor_node, bool create_sockets) Node::~Node() { while (!outputs_.is_empty()) { - delete (outputs_.pop_last()); + delete outputs_.pop_last(); } while (!inputs_.is_empty()) { - delete (inputs_.pop_last()); + delete inputs_.pop_last(); } } diff --git a/source/blender/compositor/intern/COM_NodeOperationBuilder.cc b/source/blender/compositor/intern/COM_NodeOperationBuilder.cc index 1fdec43eb3b..8212be5ec26 100644 --- a/source/blender/compositor/intern/COM_NodeOperationBuilder.cc +++ b/source/blender/compositor/intern/COM_NodeOperationBuilder.cc @@ -576,7 +576,7 @@ void NodeOperationBuilder::add_output_buffers(NodeOperation *operation, /* try to find existing write buffer operation */ if (target->get_operation().get_flags().is_write_buffer_operation) { BLI_assert(write_operation == nullptr); /* there should only be one write op connected */ - write_operation = (WriteBufferOperation *)(&target->get_operation()); + write_operation = (WriteBufferOperation *)&target->get_operation(); } else { /* remove all links to other nodes */ |