diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-07 21:47:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-07 21:47:14 +0300 |
commit | 24149e9e343dd5e507d2b4e879df55c692fbf9d1 (patch) | |
tree | 9caa75a85a3676acc02636c38f7d3e494bd10a4a /src/party.cpp | |
parent | 28f62ac9504bc5e912cd94c302295d4dcc47e41c (diff) | |
download | manaplus-24149e9e343dd5e507d2b4e879df55c692fbf9d1.tar.gz manaplus-24149e9e343dd5e507d2b4e879df55c692fbf9d1.tar.bz2 manaplus-24149e9e343dd5e507d2b4e879df55c692fbf9d1.tar.xz manaplus-24149e9e343dd5e507d2b4e879df55c692fbf9d1.zip |
Remove static in anonimouse namespaces.
Diffstat (limited to 'src/party.cpp')
-rw-r--r-- | src/party.cpp | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/src/party.cpp b/src/party.cpp index 83c8bd12e..f28236e34 100644 --- a/src/party.cpp +++ b/src/party.cpp @@ -29,35 +29,32 @@ #include "debug.h" -namespace +static class SortPartyFunctor final { - static class SortPartyFunctor final - { - public: - A_DEFAULT_COPY(SortPartyFunctor) + public: + A_DEFAULT_COPY(SortPartyFunctor) - bool operator() (const PartyMember *const p1, - const PartyMember *const p2) const - { - if ((p1 == nullptr) || (p2 == nullptr)) - return false; - if (p1->getLeader()) - return true; - if (p2->getLeader()) - return false; - - if (p1->getName() != p2->getName()) - { - std::string s1 = p1->getName(); - std::string s2 = p2->getName(); - toLower(s1); - toLower(s2); - return s1 < s2; - } + bool operator() (const PartyMember *const p1, + const PartyMember *const p2) const + { + if ((p1 == nullptr) || (p2 == nullptr)) + return false; + if (p1->getLeader()) + return true; + if (p2->getLeader()) return false; + + if (p1->getName() != p2->getName()) + { + std::string s1 = p1->getName(); + std::string s2 = p2->getName(); + toLower(s1); + toLower(s2); + return s1 < s2; } - } partySorter; -} // namespace + return false; + } +} partySorter; PartyMember::PartyMember(Party *const party, const BeingId id, |