summaryrefslogtreecommitdiff
path: root/src/listeners/baselistener.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-07 17:54:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-07 17:54:05 +0300
commitb43451daa5dc7b2e352d084d45934cf71db7ae4f (patch)
tree1e636b067a19ca00fe757d2c287342b300058b29 /src/listeners/baselistener.hpp
parent5b1eaa9ce112d70f3b93699145858e6a33ab2a3b (diff)
downloadplus-b43451daa5dc7b2e352d084d45934cf71db7ae4f.tar.gz
plus-b43451daa5dc7b2e352d084d45934cf71db7ae4f.tar.bz2
plus-b43451daa5dc7b2e352d084d45934cf71db7ae4f.tar.xz
plus-b43451daa5dc7b2e352d084d45934cf71db7ae4f.zip
Add missing const.
Diffstat (limited to 'src/listeners/baselistener.hpp')
-rw-r--r--src/listeners/baselistener.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listeners/baselistener.hpp b/src/listeners/baselistener.hpp
index 66dd0d7cf..9b089aab2 100644
--- a/src/listeners/baselistener.hpp
+++ b/src/listeners/baselistener.hpp
@@ -41,7 +41,7 @@
mListeners.push_back(listener); \
} \
\
- void name::removeListener(name *const listener) \
+ void name::removeListener(const name *const listener) \
{ \
std::vector<name*>::iterator it = mListeners.begin(); \
while (it != mListeners.end()) \
@@ -61,7 +61,7 @@
\
static void addListener(name *const listener); \
\
- static void removeListener(name *const listener); \
+ static void removeListener(const name *const listener); \
\
private: \
static std::vector<name*> mListeners;