diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:01:15 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-10-14 00:41:14 +0300 |
commit | 1c42d4930a24d639b3aa561b9a8b4bbce05977e0 (patch) | |
tree | 68c2aae3fd5ae98b78708bea28c0b55d3f4fb5f0 /source/blender/compositor/tests | |
parent | a2ee3c3a9f01f5cb2f05f1e84a1b6c1931d9d4a4 (diff) |
Cleanup: convert camelCase naming to snake_case in Compositor
To convert old code to the current convention and
use a single code style.
Diffstat (limited to 'source/blender/compositor/tests')
-rw-r--r-- | source/blender/compositor/tests/COM_NodeOperation_test.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/compositor/tests/COM_NodeOperation_test.cc b/source/blender/compositor/tests/COM_NodeOperation_test.cc index 94e9fdeedb1..ea61df22f88 100644 --- a/source/blender/compositor/tests/COM_NodeOperation_test.cc +++ b/source/blender/compositor/tests/COM_NodeOperation_test.cc @@ -27,9 +27,9 @@ class NonHashedOperation : public NodeOperation { NonHashedOperation(int id) { set_id(id); - addOutputSocket(DataType::Value); - setWidth(2); - setHeight(3); + add_output_socket(DataType::Value); + set_width(2); + set_height(3); } }; @@ -40,9 +40,9 @@ class NonHashedConstantOperation : public ConstantOperation { NonHashedConstantOperation(int id) { set_id(id); - addOutputSocket(DataType::Value); - setWidth(2); - setHeight(3); + add_output_socket(DataType::Value); + set_width(2); + set_height(3); constant_ = 1.0f; } @@ -65,14 +65,14 @@ class HashedOperation : public NodeOperation { public: HashedOperation(NodeOperation &input, int width, int height) { - addInputSocket(DataType::Value); - addOutputSocket(DataType::Color); - setWidth(width); - setHeight(height); + add_input_socket(DataType::Value); + add_output_socket(DataType::Color); + set_width(width); + set_height(height); param1 = 2; param2 = 7.0f; - getInputSocket(0)->setLink(input.getOutputSocket()); + get_input_socket(0)->set_link(input.get_output_socket()); } void set_param1(int value) |