summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-17 18:20:02 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-17 18:20:02 +0300
commitf46644e0096ffa2ce57c23707d588b2c073eed55 (patch)
treed46af09d51968c9ced37e1551cd1ff95ee07d3a1 /src/gui/widgets/browserbox.cpp
parentb99b796ff57b0da269fa67d7eb05670be0558589 (diff)
downloadmv-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.gz
mv-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.bz2
mv-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.xz
mv-f46644e0096ffa2ce57c23707d588b2c073eed55.zip
Add missing A_DEFAULT_COPY / A_DELETE_COPY into gui.
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;