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:
switch (static_cast<uint64_t>(msg.get_as<atom_value>(0))) {
default:
break;
case link_atom::value.uint_value(): {
case link_atom::uint_value(): {
if (ptr != nullptr)
static_cast<actor_proxy*>(ptr->get())->add_link(dst->get());
else
CAF_LOG_WARNING("received link message with invalid target");
return;
}
case unlink_atom::value.uint_value(): {
case unlink_atom::uint_value(): {
if (ptr != nullptr)
static_cast<actor_proxy*>(ptr->get())->remove_link(dst->get());
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