summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 1b97de024..916ce76d7 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -70,15 +70,20 @@ namespace
{
struct MouseOverLink final
{
- MouseOverLink(const int x, const int y) :
+ MouseOverLink(const int x,
+ const int y) :
mX(x),
mY(y)
{ }
+ A_DEFAULT_COPY(MouseOverLink)
+
bool operator() (const BrowserLink &link) const
{
- return (mX >= link.x1 && mX < link.x2 &&
- mY >= link.y1 && mY < link.y2);
+ return (mX >= link.x1 &&
+ mX < link.x2 &&
+ mY >= link.y1 &&
+ mY < link.y2);
}
const int mX;
const int mY;