diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:16:12 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:16:12 +0200 |
commit | 2269b9740b29bd9e1e3d688740da493589866d17 (patch) | |
tree | 724ef92c52105454b11250ac42fa865ad6a906df /include | |
parent | 01de0a19ad49f71f7d2a4b9fbcb80c0713a90d7d (diff) |
Move BanCacheHash typedef into the private part of BanCacheManager
Diffstat (limited to 'include')
-rw-r--r-- | include/bancache.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/bancache.h b/include/bancache.h index 7251596db..e39a26d64 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -48,15 +48,14 @@ class CoreExport BanCacheHit bool IsPositive() const { return (!Reason.empty()); } }; -/* A container of ban cache items. - * must be defined after class BanCacheHit. - */ -typedef TR1NS::unordered_map<std::string, BanCacheHit*, TR1NS::hash<std::string> > BanCacheHash; - /** A manager for ban cache, which allocates and deallocates and checks cached bans. */ class CoreExport BanCacheManager { + /** A container of ban cache items. + */ + typedef TR1NS::unordered_map<std::string, BanCacheHit*, TR1NS::hash<std::string> > BanCacheHash; + BanCacheHash BanHash; bool RemoveIfExpired(BanCacheHash::iterator& it); |