diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-17 18:15:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-17 18:15:44 +0300 |
commit | e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c (patch) | |
tree | 499451bcd73aa9a60860cefb1df2e540609c30ed /src/gui/windows/whoisonline.cpp | |
parent | 166432764d34d7dd42142b9fcd7069b927f00e3e (diff) | |
download | mv-e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c.tar.gz mv-e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c.tar.bz2 mv-e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c.tar.xz mv-e0715f19e8ecfdd0ef386f6445fa5e8f0aa08e0c.zip |
Add anonimous namespace into whoisonline.cpp.
Diffstat (limited to 'src/gui/windows/whoisonline.cpp')
-rw-r--r-- | src/gui/windows/whoisonline.cpp | 19 |
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 |