diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-11 17:31:20 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-11 17:31:20 +0800 |
commit | 3a8abe0aed9bb72ed64cbfe9f2f83a0db285e14c (patch) | |
tree | 67b1ab631ec78c3bf84d009c038a9c83632adee6 /src/ui/routed_event_dispatch.hpp | |
parent | 0e35b2c022599bca2df61488945f07e4d6b4eb35 (diff) | |
download | cru-3a8abe0aed9bb72ed64cbfe9f2f83a0db285e14c.tar.gz cru-3a8abe0aed9bb72ed64cbfe9f2f83a0db285e14c.tar.bz2 cru-3a8abe0aed9bb72ed64cbfe9f2f83a0db285e14c.zip |
...
Diffstat (limited to 'src/ui/routed_event_dispatch.hpp')
-rw-r--r-- | src/ui/routed_event_dispatch.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/routed_event_dispatch.hpp b/src/ui/routed_event_dispatch.hpp index 3427441b..e9430676 100644 --- a/src/ui/routed_event_dispatch.hpp +++ b/src/ui/routed_event_dispatch.hpp @@ -32,7 +32,7 @@ void DispatchEvent(Control* const original_sender, // tunnel for (auto i = receive_list.crbegin(); i != receive_list.crend(); ++i) { EventArgs event_args(*i, original_sender, std::forward<Args>(args)...); - static_cast<Event<EventArgs>*>(((*i)->*event_ptr)()->tunnel.get()) + static_cast<Event<EventArgs&>*>(((*i)->*event_ptr)()->Tunnel()) ->Raise(event_args); if (event_args.IsHandled()) { handled = true; @@ -44,7 +44,7 @@ void DispatchEvent(Control* const original_sender, if (!handled) { for (auto i : receive_list) { EventArgs event_args(i, original_sender, std::forward<Args>(args)...); - static_cast<Event<EventArgs>*>((i->*event_ptr)()->bubble.get()) + static_cast<Event<EventArgs&>*>((i->*event_ptr)()->Bubble()) ->Raise(event_args); if (event_args.IsHandled()) break; } @@ -53,7 +53,7 @@ void DispatchEvent(Control* const original_sender, // direct for (auto i : receive_list) { EventArgs event_args(i, original_sender, std::forward<Args>(args)...); - static_cast<Event<EventArgs>*>((i->*event_ptr)()->direct.get()) + static_cast<Event<EventArgs&>*>((i->*event_ptr)()->Direct()) ->Raise(event_args); } } |