diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-25 11:33:28 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-25 13:17:08 +0300 |
commit | f68cfd6bb078482c4a779a6e26a56e2734edb5b8 (patch) | |
tree | 2878e5b80dba5bdeba186d99661d604eb38879cd /source/blender/compositor/nodes/COM_CropNode.cc | |
parent | c7b247a118e302a3afc6473797e53b6af28b69e2 (diff) |
Cleanup: replace C-style casts with functional casts for numeric types
Diffstat (limited to 'source/blender/compositor/nodes/COM_CropNode.cc')
-rw-r--r-- | source/blender/compositor/nodes/COM_CropNode.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/nodes/COM_CropNode.cc b/source/blender/compositor/nodes/COM_CropNode.cc index 849fb80a8a8..80f345e8762 100644 --- a/source/blender/compositor/nodes/COM_CropNode.cc +++ b/source/blender/compositor/nodes/COM_CropNode.cc @@ -16,8 +16,8 @@ void CropNode::convert_to_operations(NodeConverter &converter, { const bNode *node = get_bnode(); NodeTwoXYs *crop_settings = (NodeTwoXYs *)node->storage; - bool relative = (bool)node->custom2; - bool crop_image = (bool)node->custom1; + bool relative = bool(node->custom2); + bool crop_image = bool(node->custom1); CropBaseOperation *operation; if (crop_image) { operation = new CropImageOperation(); |