diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:14:31 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-13 15:14:31 +0200 |
commit | 01de0a19ad49f71f7d2a4b9fbcb80c0713a90d7d (patch) | |
tree | 4eacb23747489881a5fe4bf364479560f8b649c5 /include | |
parent | b071a6acd805bde6119a66481768be13102d1c2b (diff) |
Change allocation of BanCacheManager::BanHash to be physically part of the object containing it
Diffstat (limited to 'include')
-rw-r--r-- | include/bancache.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/bancache.h b/include/bancache.h index 7f51ca75e..7251596db 100644 --- a/include/bancache.h +++ b/include/bancache.h @@ -57,7 +57,7 @@ typedef TR1NS::unordered_map<std::string, BanCacheHit*, TR1NS::hash<std::string> */ class CoreExport BanCacheManager { - BanCacheHash* BanHash; + BanCacheHash BanHash; bool RemoveIfExpired(BanCacheHash::iterator& it); public: @@ -77,9 +77,5 @@ class CoreExport BanCacheManager */ void RemoveEntries(const std::string& type, bool positive); - BanCacheManager() - { - this->BanHash = new BanCacheHash(); - } ~BanCacheManager(); }; |