From e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 May 2014 18:15:22 +0300 Subject: Add anonimous namespace into whoisonline.cpp. --- src/gui/windows/whoisonline.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index 2df2f431b..02ce9c6f7 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -67,15 +67,18 @@ #undef malloc #endif -class NameFunctuator final +namespace { - public: - bool operator()(const OnlinePlayer *left, - const OnlinePlayer *right) const - { - return (compareStrI(left->getNick(), right->getNick()) < 0); - } -} nameCompare; + class NameFunctuator final + { + public: + bool operator()(const OnlinePlayer *left, + const OnlinePlayer *right) const + { + return (compareStrI(left->getNick(), right->getNick()) < 0); + } + } nameCompare; +} // namespace WhoIsOnline::WhoIsOnline() : // TRANSLATORS: who is online window name -- cgit v1.2.3-70-g09d2