summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-20 00:25:42 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-20 00:25:42 +0200
commit3f00faa305201fabcc74e17dc24da4cefa9dbfa5 (patch)
tree460a7a06c97912e5ed9a525f01624748dd7a16a6 /src/gui/widgets
parentda9ec0b7b8e061b3d3bf1d145284de9d778456c1 (diff)
downloadmv-3f00faa305201fabcc74e17dc24da4cefa9dbfa5.tar.gz
mv-3f00faa305201fabcc74e17dc24da4cefa9dbfa5.tar.bz2
mv-3f00faa305201fabcc74e17dc24da4cefa9dbfa5.tar.xz
mv-3f00faa305201fabcc74e17dc24da4cefa9dbfa5.zip
Fix some code style and some errors.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/browserbox.cpp2
-rw-r--r--src/gui/widgets/mouseevent.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index d2d908b95..eaeed4d06 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -244,7 +244,7 @@ struct MouseOverLink
MouseOverLink(int x, int y) : mX(x), mY(y)
{ }
- bool operator() (BROWSER_LINK &link)
+ bool operator() (BROWSER_LINK &link) const
{
return (mX >= link.x1 && mX < link.x2 &&
mY >= link.y1 && mY < link.y2);
diff --git a/src/gui/widgets/mouseevent.h b/src/gui/widgets/mouseevent.h
index 774132d79..5e9a46cfd 100644
--- a/src/gui/widgets/mouseevent.h
+++ b/src/gui/widgets/mouseevent.h
@@ -29,9 +29,9 @@ class MouseEvent : public gcn::MouseEvent
{
public:
MouseEvent(gcn::Widget* source, bool isShiftPressed,
- bool isControlPressed, bool isAltPressed, bool isMetaPressed,
- unsigned int type, unsigned int button, int x, int y,
- int clickCount) :
+ bool isControlPressed, bool isAltPressed,
+ bool isMetaPressed, unsigned int type, unsigned int button,
+ int x, int y, int clickCount) :
gcn::MouseEvent(source, isShiftPressed, isControlPressed,
isAltPressed, isMetaPressed, type, button, x, y,
clickCount)