diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-11 11:48:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-11 11:48:59 +0300 |
commit | a39eb85431bf1b18fcd485aaee824ac7cde34a08 (patch) | |
tree | d0d6868d45557ae35b1e5dd8b40c9ba8a97b2f3e | |
parent | 382d8b04262ba42a4ef334df4e35211f3c03c1b7 (diff) | |
download | ManaVerse-a39eb85431bf1b18fcd485aaee824ac7cde34a08.tar.gz ManaVerse-a39eb85431bf1b18fcd485aaee824ac7cde34a08.tar.bz2 ManaVerse-a39eb85431bf1b18fcd485aaee824ac7cde34a08.tar.xz ManaVerse-a39eb85431bf1b18fcd485aaee824ac7cde34a08.zip |
Add anonimous namespace in client.cpp
-rw-r--r-- | src/client.cpp | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/client.cpp b/src/client.cpp index db310e2cb..1a6863a6d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -186,23 +186,26 @@ int textures_count = 0; extern "C" char const *_nl_locale_name_default(void); #endif -class AccountListener final : public ActionListener +namespace { - public: - void action(const ActionEvent &) - { - client->setState(STATE_CHAR_SELECT); - } -} accountListener; + class AccountListener final : public ActionListener + { + public: + void action(const ActionEvent &) + { + client->setState(STATE_CHAR_SELECT); + } + } accountListener; -class LoginListener final : public ActionListener -{ - public: - void action(const ActionEvent &) - { - client->setState(STATE_PRE_LOGIN); - } -} loginListener; + class LoginListener final : public ActionListener + { + public: + void action(const ActionEvent &) + { + client->setState(STATE_PRE_LOGIN); + } + } loginListener; +} // namespace Client::Client(const Options &options) : ActionListener(), |