diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-02 22:15:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-02 22:15:12 +0300 |
commit | 82644cd319e46e35a7b4e3b4a61fac2465a2ea66 (patch) | |
tree | d737e04b71ea583abe1e835ece785b147a6abfb9 /src/gui/widgets/browserbox.cpp | |
parent | 37343e2b49466bb6cab33f8d1ca362a25f77a660 (diff) | |
download | manaplus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.gz manaplus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.bz2 manaplus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.tar.xz manaplus-82644cd319e46e35a7b4e3b4a61fac2465a2ea66.zip |
Add missing final/notfinal to classes.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index f0a10c77c..f6f86a42d 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -47,6 +47,23 @@ #include "debug.h" +namespace +{ + struct MouseOverLink final + { + MouseOverLink(const int x, const int y) : + mX(x), mY(y) + { } + + bool operator() (const BrowserLink &link) const + { + return (mX >= link.x1 && mX < link.x2 && + mY >= link.y1 && mY < link.y2); + } + int mX, mY; + }; +} // namespace + ImageSet *BrowserBox::mEmotes = nullptr; int BrowserBox::mInstances = 0; @@ -409,20 +426,6 @@ void BrowserBox::clearRows() updateHeight(); } -struct MouseOverLink -{ - MouseOverLink(const int x, const int y) : - mX(x), mY(y) - { } - - bool operator() (const BrowserLink &link) const - { - return (mX >= link.x1 && mX < link.x2 && - mY >= link.y1 && mY < link.y2); - } - int mX, mY; -}; - void BrowserBox::mousePressed(MouseEvent &event) { if (!mLinkHandler) |