aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-11 18:41:52 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-11 18:41:52 +0100
commit9ee280d8149f84f4240902c3363a6881bf425137 (patch)
tree91ae0baa89668408e92b4bd46fc3027d1b6b7418 /src
parent80c74b90a3e44e25a4fa9fdd25bf0aa9efbaf6fd (diff)
backup
Diffstat (limited to 'src')
-rw-r--r--src/crepe/api/EventManager.h2
1 files changed, 1 insertions, 1 deletions
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 <typename EventType>
void EventManager::unsubscribe(const EventHandler<EventType> & 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) {