summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-11 12:31:29 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-11 12:32:20 +0300
commitba086a40533ca00b8dd9dc6162d22065d6c3cdb3 (patch)
tree8acb94cbcbf979106e11ffbd63a3be12a730b412 /src/gui/widgets
parente8f099cace1d77dd9ff12b4231871c6e122a739d (diff)
downloadplus-ba086a40533ca00b8dd9dc6162d22065d6c3cdb3.tar.gz
plus-ba086a40533ca00b8dd9dc6162d22065d6c3cdb3.tar.bz2
plus-ba086a40533ca00b8dd9dc6162d22065d6c3cdb3.tar.xz
plus-ba086a40533ca00b8dd9dc6162d22065d6c3cdb3.zip
Put OpenLinkHandler in own namespace.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemlinkhandler.cpp27
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)