X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fbancache.h;h=f143d51ebf7fbe6150d2e6d87cbd78d67fc57d14;hb=dcbb0ae938711cd49df73dc2ff6cd6289aeefb44;hp=c9c469e4f8fa4a81bdac25dea41679b5ef7e210a;hpb=6d03943426dcce76ba66567a9b18425a5ebb4c0c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/bancache.h b/include/bancache.h index c9c469e4f..f143d51eb 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -21,7 +21,7 @@ * entries expire every few hours, which is a reasonable expiry for any reasonable * sized network. */ -class CoreExport BanCacheHit : public classbase +class CoreExport BanCacheHit { public: /** Type of cached ban @@ -66,7 +66,7 @@ typedef nspace::hash_map > /** A manager for ban cache, which allocates and deallocates and checks cached bans. */ -class CoreExport BanCacheManager : public classbase +class CoreExport BanCacheManager { private: BanCacheHash* BanHash; @@ -94,11 +94,7 @@ class CoreExport BanCacheManager : public classbase { this->BanHash = new BanCacheHash(); } - ~BanCacheManager() - { - delete BanHash; - } - + ~BanCacheManager(); void RehashCache(); };