diff options
author | Jacques Lucke <jacques@blender.org> | 2021-12-17 17:40:06 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-12-17 17:42:28 +0300 |
commit | 77760194fe9ec67721ca7ea5ef111f734d2e240a (patch) | |
tree | e7d27d3b8cc639c4427cf6708edb1c3ebd32601c /source/blender/nodes/geometry/nodes/node_geo_switch.cc | |
parent | a3ad5abf2fe85d623f9e78fefc34e27bdc14632e (diff) |
Cleanup: use new c++ guarded allocator api in some files
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_switch.cc')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_switch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_switch.cc b/source/blender/nodes/geometry/nodes/node_geo_switch.cc index d22522fe087..91aa1432ee2 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_switch.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_switch.cc @@ -94,7 +94,7 @@ static void node_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) static void node_init(bNodeTree *UNUSED(tree), bNode *node) { - NodeSwitch *data = (NodeSwitch *)MEM_callocN(sizeof(NodeSwitch), __func__); + NodeSwitch *data = MEM_cnew<NodeSwitch>(__func__); data->input_type = SOCK_GEOMETRY; node->storage = data; } |