Commit 3385553b authored by Dominik Charousset's avatar Dominik Charousset

Work around false "unreachable code" warning

parent dbe880af
......@@ -66,7 +66,7 @@ class actor_widget : public Base {
m_companion->become(pfun(m_companion.get()));
}
virtual bool event(QEvent* event) {
bool event(QEvent* event) override {
if (event->type() == static_cast<QEvent::Type>(EventId)) {
auto ptr = dynamic_cast<event_type*>(event);
if (ptr) {
......
......@@ -131,10 +131,9 @@ bool abstract_actor::link_impl(linking_operation op, const actor_addr& other) {
return establish_backlink_impl(other);
case remove_link_op:
return remove_link_impl(other);
case remove_backlink_op:
return remove_backlink_impl(other);
default:
return false;
CAF_REQUIRE(op == remove_backlink_op);
return remove_backlink_impl(other);
}
}
......
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