summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-17 18:15:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-17 18:15:44 +0300
commite0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c (patch)
tree499451bcd73aa9a60860cefb1df2e540609c30ed /src
parent166432764d34d7dd42142b9fcd7069b927f00e3e (diff)
downloadplus-e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c.tar.gz
plus-e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c.tar.bz2
plus-e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c.tar.xz
plus-e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c.zip
Add anonimous namespace into whoisonline.cpp.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/whoisonline.cpp19
1 files changed, 11 insertions, 8 deletions
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