diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-17 18:20:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-17 18:20:02 +0300 |
commit | f46644e0096ffa2ce57c23707d588b2c073eed55 (patch) | |
tree | d46af09d51968c9ced37e1551cd1ff95ee07d3a1 /src/gui/widgets/browserbox.cpp | |
parent | b99b796ff57b0da269fa67d7eb05670be0558589 (diff) | |
download | manaverse-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.gz manaverse-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.bz2 manaverse-f46644e0096ffa2ce57c23707d588b2c073eed55.tar.xz manaverse-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.cpp | 11 |
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; |