diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-28 01:59:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-28 01:59:04 +0300 |
commit | c79403e1341ac533df1771b866d1f5cee15e12b5 (patch) | |
tree | 5bed6dfb44f7fce0432bd7a7a28d2d23db07ce80 /src/gui/sdlinput.cpp | |
parent | 7c79aa2b8e484319e3e511fa21db6d2448347024 (diff) | |
download | manaplus-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.gz manaplus-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.bz2 manaplus-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.xz manaplus-c79403e1341ac533df1771b866d1f5cee15e12b5.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/sdlinput.cpp')
-rw-r--r-- | src/gui/sdlinput.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index 2b6b8363b..2c4e8cbea 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -220,7 +220,7 @@ void SDLInput::pushInput(const SDL_Event &event) } // end switch } -int SDLInput::convertMouseButton(int button) +int SDLInput::convertMouseButton(const int button) { switch (button) { @@ -236,9 +236,9 @@ int SDLInput::convertMouseButton(int button) } } -int SDLInput::convertKeyCharacter(SDL_Event event) +int SDLInput::convertKeyCharacter(const SDL_Event event) { - SDL_keysym keysym = event.key.keysym; + const SDL_keysym keysym = event.key.keysym; int value = keysym.unicode; |