diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/itemlinkhandler.cpp | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp index 804177a0a..85aa4e090 100644 --- a/src/gui/widgets/itemlinkhandler.cpp +++ b/src/gui/widgets/itemlinkhandler.cpp @@ -42,23 +42,26 @@ #include "debug.h" -struct OpenUrlListener : public gcn::ActionListener +namespace { - OpenUrlListener() : - url() + struct OpenUrlListener : public gcn::ActionListener { - } + OpenUrlListener() : + url() + { + } - A_DELETE_COPY(OpenUrlListener) + A_DELETE_COPY(OpenUrlListener) - void action(const gcn::ActionEvent &event) override - { - if (event.getId() == "yes") - openBrowser(url); - } + void action(const gcn::ActionEvent &event) override + { + if (event.getId() == "yes") + openBrowser(url); + } - std::string url; -} listener; + std::string url; + } listener; +} // namespace ItemLinkHandler::ItemLinkHandler() : mItemPopup(new ItemPopup) |