From 9ee280d8149f84f4240902c3363a6881bf425137 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Mon, 11 Nov 2024 18:41:52 +0100 Subject: backup --- src/crepe/api/EventManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crepe/api/EventManager.h b/src/crepe/api/EventManager.h index 88a386a..91120fd 100644 --- a/src/crepe/api/EventManager.h +++ b/src/crepe/api/EventManager.h @@ -78,7 +78,7 @@ void EventManager::trigger_event(const EventType & event, int eventId) { template void EventManager::unsubscribe(const EventHandler & callback, int channel) { std::type_index event_type(typeid(EventType)); - std::string handler_name(callback.target_type().name()); + const std::string handler_name = callback.target_type().name(); std::cout << "unsubcribe name: " << handler_name << std::endl; if (channel) { -- cgit v1.2.3