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/being/playerrelations.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/being/playerrelations.cpp')
-rw-r--r-- | src/being/playerrelations.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/being/playerrelations.cpp b/src/being/playerrelations.cpp index 2e4b4b68c..e45376137 100644 --- a/src/being/playerrelations.cpp +++ b/src/being/playerrelations.cpp @@ -44,18 +44,18 @@ typedef PlayerRelations::const_iterator PlayerRelationsCIter; typedef std::list<PlayerRelationsListener *> PlayerRelationListeners; typedef PlayerRelationListeners::const_iterator PlayerRelationListenersCIter; -namespace -{ - static const char *const PLAYER_IGNORE_STRATEGY_NOP = "nop"; - static const char *const PLAYER_IGNORE_STRATEGY_EMOTE0 = "emote0"; - static const char *const DEFAULT_IGNORE_STRATEGY - = PLAYER_IGNORE_STRATEGY_EMOTE0; +static const char *const PLAYER_IGNORE_STRATEGY_NOP = "nop"; +static const char *const PLAYER_IGNORE_STRATEGY_EMOTE0 = "emote0"; +static const char *const DEFAULT_IGNORE_STRATEGY = + PLAYER_IGNORE_STRATEGY_EMOTE0; - static const char *const NAME = "name"; - static const char *const RELATION = "relation"; +static const char *const NAME = "name"; +static const char *const RELATION = "relation"; - static const unsigned int IGNORE_EMOTE_TIME = 100; +static const unsigned int IGNORE_EMOTE_TIME = 100; +namespace +{ class SortPlayersFunctor final { public: @@ -131,11 +131,10 @@ namespace return container; } }; - - static PlayerConfSerialiser player_conf_serialiser; // stateless singleton - } // namespace +static PlayerConfSerialiser player_conf_serialiser; // stateless singleton + const unsigned int PlayerRelation::RELATION_PERMISSIONS[RELATIONS_NR] = { /* NEUTRAL */ 0, // we always fall back to the defaults anyway |