diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-04-09 00:25:41 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-04-09 17:54:13 +0200 |
commit | 72d83cf5ae523f16fd5313c20f711f6030350d05 (patch) | |
tree | 11e737b42871df8c8be5c819dd29613dade27938 /src/event.cpp | |
parent | 404d3f7f2f9aa455bea423a6a00025df23cd6687 (diff) | |
download | mana-72d83cf5ae523f16fd5313c20f711f6030350d05.tar.gz mana-72d83cf5ae523f16fd5313c20f711f6030350d05.tar.bz2 mana-72d83cf5ae523f16fd5313c20f711f6030350d05.tar.xz mana-72d83cf5ae523f16fd5313c20f711f6030350d05.zip |
Renamed Listener to EventListener
Makes it clear what kind of listener it is, since there are other
listener classes as well.
Acked-by: Jared Adams
Diffstat (limited to 'src/event.cpp')
-rw-r--r-- | src/event.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.cpp b/src/event.cpp index fc6fa570..18091643 100644 --- a/src/event.cpp +++ b/src/event.cpp @@ -20,7 +20,7 @@ #include "event.h" -#include "listener.h" +#include "eventlistener.h" #include "variabledata.h" Event::ListenMap Event::mBindings; @@ -229,17 +229,17 @@ void Event::trigger(Channel channel, const Event &event) } } -void Event::bind(Listener *listener, Channel channel) +void Event::bind(EventListener *listener, Channel channel) { mBindings[channel].insert(listener); } -void Event::unbind(Listener *listener, Channel channel) +void Event::unbind(EventListener *listener, Channel channel) { mBindings[channel].erase(listener); } -void Event::remove(Listener *listener) +void Event::remove(EventListener *listener) { ListenMap::iterator it = mBindings.begin(); while (it != mBindings.end()) |