summaryrefslogtreecommitdiff
path: root/src/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.cpp')
-rw-r--r--src/event.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event.cpp b/src/event.cpp
index 3ca4c5e2..c8de2ffd 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -215,7 +215,7 @@ bool Event::hasActor(const std::string &key) const
// Triggers
-void Event::trigger(const std::string &channel, const Event &event)
+void Event::trigger(Channels channel, const Event &event)
{
ListenMap::iterator it = mBindings.find(channel);
@@ -232,12 +232,12 @@ void Event::trigger(const std::string &channel, const Event &event)
}
}
-void Event::bind(Listener *listener, const std::string &channel)
+void Event::bind(Listener *listener, Channels channel)
{
mBindings[channel].insert(listener);
}
-void Event::unbind(Listener *listener, const std::string &channel)
+void Event::unbind(Listener *listener, Channels channel)
{
mBindings[channel].erase(listener);
}