summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-13 15:16:12 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-13 15:16:12 +0200
commit2269b9740b29bd9e1e3d688740da493589866d17 (patch)
tree724ef92c52105454b11250ac42fa865ad6a906df /include
parent01de0a19ad49f71f7d2a4b9fbcb80c0713a90d7d (diff)
Move BanCacheHash typedef into the private part of BanCacheManager
Diffstat (limited to 'include')
-rw-r--r--include/bancache.h9
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);