Skip to content

Commit a030d10

Browse files
committed
use static_cast instead of reinterpret_cast
1 parent 470f225 commit a030d10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/reactor_element.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ ReactorElement::ReactorElement(const std::string& name, ReactorElement::Type typ
3939
container->register_action(reinterpret_cast<BaseAction*>(this)); // NOLINT
4040
break;
4141
case Type::Input:
42-
container->register_input(reinterpret_cast<BasePort*>(this)); // NOLINT
42+
container->register_input(static_cast<BasePort*>(this)); // NOLINT
4343
break;
4444
case Type::Output:
45-
container->register_output(reinterpret_cast<BasePort*>(this)); // NOLINT
45+
container->register_output(static_cast<BasePort*>(this)); // NOLINT
4646
break;
4747
case Type::Reaction:
4848
container->register_reaction(reinterpret_cast<Reaction*>(this)); // NOLINT

0 commit comments

Comments
 (0)