aboutsummaryrefslogtreecommitdiff
path: root/src/ui/host/WindowHost.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-06 17:27:10 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-06 17:27:10 +0800
commit6315e654ce0be2d2cc148e9ff80f611ac1176348 (patch)
tree8232fedd7bbe87d635563e743e22781e20f83376 /src/ui/host/WindowHost.cpp
parent38b1268028d4d631de15ca85826c241e39c82675 (diff)
downloadcru-6315e654ce0be2d2cc148e9ff80f611ac1176348.tar.gz
cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.tar.bz2
cru-6315e654ce0be2d2cc148e9ff80f611ac1176348.zip
Refactor Event.
Diffstat (limited to 'src/ui/host/WindowHost.cpp')
-rw-r--r--src/ui/host/WindowHost.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/host/WindowHost.cpp b/src/ui/host/WindowHost.cpp
index 4c707772..7417740d 100644
--- a/src/ui/host/WindowHost.cpp
+++ b/src/ui/host/WindowHost.cpp
@@ -93,9 +93,9 @@ namespace {
template <typename T>
inline void BindNativeEvent(
WindowHost* host, INativeWindow* native_window, IEvent<T>* event,
- void (WindowHost::*handler)(INativeWindow*, typename IEvent<T>::EventArgs),
- std::vector<EventRevokerGuard>& guard_pool) {
- guard_pool.push_back(EventRevokerGuard(event->AddHandler(
+ void (WindowHost::*handler)(INativeWindow*, typename IEvent<T>::Args),
+ std::vector<EventHandlerRevokerGuard>& guard_pool) {
+ guard_pool.push_back(EventHandlerRevokerGuard(event->AddHandler(
std::bind(handler, host, native_window, std::placeholders::_1))));
}
} // namespace