summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-11 11:48:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-11 11:48:59 +0300
commita39eb85431bf1b18fcd485aaee824ac7cde34a08 (patch)
treed0d6868d45557ae35b1e5dd8b40c9ba8a97b2f3e /src/client.cpp
parent382d8b04262ba42a4ef334df4e35211f3c03c1b7 (diff)
downloadplus-a39eb85431bf1b18fcd485aaee824ac7cde34a08.tar.gz
plus-a39eb85431bf1b18fcd485aaee824ac7cde34a08.tar.bz2
plus-a39eb85431bf1b18fcd485aaee824ac7cde34a08.tar.xz
plus-a39eb85431bf1b18fcd485aaee824ac7cde34a08.zip
Add anonimous namespace in client.cpp
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp33
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(),