From a39eb85431bf1b18fcd485aaee824ac7cde34a08 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 May 2014 11:48:59 +0300 Subject: Add anonimous namespace in client.cpp --- src/client.cpp | 33 ++++++++++++++++++--------------- 1 file 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(), -- cgit v1.2.3-60-g2f50