aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) {