Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-08-31 19:49:35 +0300
committerHans Goudey <h.goudey@me.com>2022-08-31 20:06:13 +0300
commit91d9f46aecacab60d747b757cf57ecdc1b18913a (patch)
tree85f0adae90cf5adde5bf6763c6c33de15c85f7c3 /source/blender/nodes/composite/nodes/node_composite_colorbalance.cc
parentfae955fdb11e49d8c2fad29da6546038ae7386db (diff)
Cleanup: Use const for node data in compositor
Push the const usage a bit further for compositor nodes, so that they are more explicit about not modifying original nodes from the editor. Differential Revision: https://developer.blender.org/D15822
Diffstat (limited to 'source/blender/nodes/composite/nodes/node_composite_colorbalance.cc')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_colorbalance.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_colorbalance.cc b/source/blender/nodes/composite/nodes/node_composite_colorbalance.cc
index 95675169c76..e6e2a310eb4 100644
--- a/source/blender/nodes/composite/nodes/node_composite_colorbalance.cc
+++ b/source/blender/nodes/composite/nodes/node_composite_colorbalance.cc
@@ -191,9 +191,9 @@ class ColorBalanceShaderNode : public ShaderNode {
return (CMPNodeColorBalanceMethod)bnode().custom1;
}
- NodeColorBalance *get_node_color_balance()
+ const NodeColorBalance *get_node_color_balance()
{
- return static_cast<NodeColorBalance *>(bnode().storage);
+ return static_cast<const NodeColorBalance *>(bnode().storage);
}
};