Commit 7cbbfbb6 authored by Dominik Charousset's avatar Dominik Charousset Committed by Dominik Charousset

Avoid accessing static value through object

parent 6e8ef53f
...@@ -98,14 +98,14 @@ public: ...@@ -98,14 +98,14 @@ public:
switch (static_cast<uint64_t>(msg.get_as<atom_value>(0))) { switch (static_cast<uint64_t>(msg.get_as<atom_value>(0))) {
default: default:
break; break;
case link_atom::value.uint_value(): { case link_atom::uint_value(): {
if (ptr != nullptr) if (ptr != nullptr)
static_cast<actor_proxy*>(ptr->get())->add_link(dst->get()); static_cast<actor_proxy*>(ptr->get())->add_link(dst->get());
else else
CAF_LOG_WARNING("received link message with invalid target"); CAF_LOG_WARNING("received link message with invalid target");
return; return;
} }
case unlink_atom::value.uint_value(): { case unlink_atom::uint_value(): {
if (ptr != nullptr) if (ptr != nullptr)
static_cast<actor_proxy*>(ptr->get())->remove_link(dst->get()); static_cast<actor_proxy*>(ptr->get())->remove_link(dst->get());
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment