summaryrefslogtreecommitdiff
path: root/src/guichan/mouseevent.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-01 20:49:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 00:37:51 +0300
commit4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch)
tree7cadc707bb49e4c148ba9c182075697a9643e20a /src/guichan/mouseevent.cpp
parented3410d7eb61593a2235ddba97ce257c85e405a6 (diff)
downloadmanaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz
manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2
manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz
manaverse-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip
Add const to more classes.
Diffstat (limited to 'src/guichan/mouseevent.cpp')
-rw-r--r--src/guichan/mouseevent.cpp41
1 files changed, 20 insertions, 21 deletions
diff --git a/src/guichan/mouseevent.cpp b/src/guichan/mouseevent.cpp
index 2e5c757c5..7f386b0a6 100644
--- a/src/guichan/mouseevent.cpp
+++ b/src/guichan/mouseevent.cpp
@@ -52,28 +52,27 @@
namespace gcn
{
- MouseEvent::MouseEvent(Widget* source,
- bool shiftPressed,
- bool controlPressed,
- bool altPressed,
- bool metaPressed,
- unsigned int type,
- unsigned int button,
- int x,
- int y,
- int clickCount)
- :InputEvent(source,
- shiftPressed,
- controlPressed,
- altPressed,
- metaPressed),
- mType(type),
- mButton(button),
- mX(x),
- mY(y),
- mClickCount(clickCount)
+ MouseEvent::MouseEvent(Widget *const source,
+ const bool shiftPressed,
+ const bool controlPressed,
+ const bool altPressed,
+ const bool metaPressed,
+ const unsigned int type,
+ const unsigned int button,
+ const int x,
+ const int y,
+ const int clickCount) :
+ InputEvent(source,
+ shiftPressed,
+ controlPressed,
+ altPressed,
+ metaPressed),
+ mType(type),
+ mButton(button),
+ mX(x),
+ mY(y),
+ mClickCount(clickCount)
{
-
}
unsigned int MouseEvent::getButton() const