diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-03 21:48:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-03 21:48:54 +0300 |
commit | e848a47b6ceb86cb2a40d094d608b791aff674e6 (patch) | |
tree | 234f517187ea1bccb1f598c508c5fbd69f0417f3 /src | |
parent | b1d2dc573da58236e8a972bbab7a52345aeee8c1 (diff) | |
download | manaplus-e848a47b6ceb86cb2a40d094d608b791aff674e6.tar.gz manaplus-e848a47b6ceb86cb2a40d094d608b791aff674e6.tar.bz2 manaplus-e848a47b6ceb86cb2a40d094d608b791aff674e6.tar.xz manaplus-e848a47b6ceb86cb2a40d094d608b791aff674e6.zip |
Add some const to sdlinput.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/sdlinput.cpp | 2 | ||||
-rw-r--r-- | src/gui/sdlinput.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index e8660f861..3a4940d8b 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -106,7 +106,7 @@ gcn::MouseInput SDLInput::dequeueMouseInput() return mouseInput; } -void SDLInput::pushInput(SDL_Event event) +void SDLInput::pushInput(const SDL_Event &event) { gcn::KeyInput keyInput; gcn::MouseInput mouseInput; diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h index f68612793..af74534c3 100644 --- a/src/gui/sdlinput.h +++ b/src/gui/sdlinput.h @@ -140,7 +140,7 @@ public: * * @param event an event from SDL. */ - virtual void pushInput(SDL_Event event); + virtual void pushInput(const SDL_Event &event); /** * Polls all input. It exists for input driver compatibility. If you |