diff options
Diffstat (limited to 'source/blender/nodes/NOD_derived_node_tree.hh')
-rw-r--r-- | source/blender/nodes/NOD_derived_node_tree.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/NOD_derived_node_tree.hh b/source/blender/nodes/NOD_derived_node_tree.hh index 570b6cb704d..9c71ae79cf2 100644 --- a/source/blender/nodes/NOD_derived_node_tree.hh +++ b/source/blender/nodes/NOD_derived_node_tree.hh @@ -265,12 +265,12 @@ inline const DSocket &DSocket::as_base() const inline const DInputSocket &DSocket::as_input() const { - return *(DInputSocket *)this; + return static_cast<const DInputSocket &>(*this); } inline const DOutputSocket &DSocket::as_output() const { - return *(DOutputSocket *)this; + return static_cast<const DOutputSocket &>(*this); } inline PointerRNA *DSocket::rna() const |