Commit 90b8333f authored by Dominik Charousset's avatar Dominik Charousset

Fix `actor_widget`

parent 165b3e03
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
namespace caf { namespace caf {
namespace mixin { namespace mixin {
template<typename Base, int EventId = static_cast<int>(QEvent::User + 31337)> template<typename Base, int EventId = static_cast<int>(QEvent::User + 31337)>
class actor_widget : public Base { class actor_widget : public Base {
...@@ -75,8 +75,8 @@ class actor_widget : public Base { ...@@ -75,8 +75,8 @@ class actor_widget : public Base {
if (event->type() == static_cast<QEvent::Type>(EventId)) { if (event->type() == static_cast<QEvent::Type>(EventId)) {
auto ptr = dynamic_cast<event_type*>(event); auto ptr = dynamic_cast<event_type*>(event);
if (ptr) { if (ptr) {
m_invoke.handle_message(m_companion.get(), m_invoke.invoke_message(m_companion.get(),
ptr->mptr.release(), *ptr->mptr.get(),
m_companion->bhvr_stack().back(), m_companion->bhvr_stack().back(),
m_companion->bhvr_stack().back_id()); m_companion->bhvr_stack().back_id());
return true; return true;
......
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