From 2269b9740b29bd9e1e3d688740da493589866d17 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 13 Jun 2014 15:16:12 +0200 Subject: Move BanCacheHash typedef into the private part of BanCacheManager --- include/bancache.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include') 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 > 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 > BanCacheHash; + BanCacheHash BanHash; bool RemoveIfExpired(BanCacheHash::iterator& it); -- cgit v1.2.3