diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-11 12:31:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-11 12:32:20 +0300 |
commit | ba086a40533ca00b8dd9dc6162d22065d6c3cdb3 (patch) | |
tree | 8acb94cbcbf979106e11ffbd63a3be12a730b412 /src/gui/windows/logindialog.cpp | |
parent | e8f099cace1d77dd9ff12b4231871c6e122a739d (diff) | |
download | manaverse-ba086a40533ca00b8dd9dc6162d22065d6c3cdb3.tar.gz manaverse-ba086a40533ca00b8dd9dc6162d22065d6c3cdb3.tar.bz2 manaverse-ba086a40533ca00b8dd9dc6162d22065d6c3cdb3.tar.xz manaverse-ba086a40533ca00b8dd9dc6162d22065d6c3cdb3.zip |
Put OpenLinkHandler in own namespace.
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r-- | src/gui/windows/logindialog.cpp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index 883c4606d..ab80e2db1 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -51,24 +51,27 @@ std::string LoginDialog::savedPassword(""); std::string LoginDialog::savedPasswordKey(""); -struct OpenUrlListener : public gcn::ActionListener +namespace { - OpenUrlListener() : - gcn::ActionListener(), - url() + struct OpenUrlListener : public gcn::ActionListener { - } + OpenUrlListener() : + gcn::ActionListener(), + 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; -} urlListener; + std::string url; + } urlListener; +} // namespace const char *UPDATE_TYPE_TEXT[3] = { |