From 5cd5eab50d36e350d440e353ab3af40326e1d185 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 10 Aug 2017 08:35:06 +0200 Subject: [PATCH] Use non-deprecated functions for event handler & loop hook registration We want to phase out `event_handler_hook_use` and `loop_hook_use`, so use the new methods instead. Signed-off-by: Gergely Nagy --- src/Kaleidoscope/OneShot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kaleidoscope/OneShot.cpp b/src/Kaleidoscope/OneShot.cpp index a648cbe0..bb1bf4ee 100644 --- a/src/Kaleidoscope/OneShot.cpp +++ b/src/Kaleidoscope/OneShot.cpp @@ -205,8 +205,8 @@ OneShot::OneShot(void) { } void OneShot::begin(void) { - event_handler_hook_use(eventHandlerHook); - loop_hook_use(loopHook); + Kaleidoscope.useEventHandlerHook(eventHandlerHook); + Kaleidoscope.useLoopHook(loopHook); } bool OneShot::isActive(void) {