diff options
| author | 2022-09-29 12:01:29 +0100 | |
|---|---|---|
| committer | 2022-09-29 12:36:01 +0100 | |
| commit | 89537ed2ab22fcedb25e0378bd2c18e392911c0c (patch) | |
| tree | 4cdea30cb16c0a044d80ba4bab8ef9a645c90824 /src/bancache.cpp | |
| parent | Use NOMINMAX on Windows and undefine error in the log header. (diff) | |
Fix various cases of the &* being next to the name instead of type.
Diffstat (limited to 'src/bancache.cpp')
| -rw-r--r-- | src/bancache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bancache.cpp b/src/bancache.cpp index a79c94544..3255644cc 100644 --- a/src/bancache.cpp +++ b/src/bancache.cpp @@ -31,7 +31,7 @@ BanCacheHit::BanCacheHit(const std::string& type, const std::string& reason, tim { } -BanCacheHit *BanCacheManager::AddHit(const std::string &ip, const std::string &type, const std::string &reason, time_t seconds) +BanCacheHit* BanCacheManager::AddHit(const std::string& ip, const std::string& type, const std::string& reason, time_t seconds) { BanCacheHit*& b = BanHash[ip]; if (b != nullptr) // can't have two cache entries on the same IP, sorry.. @@ -41,7 +41,7 @@ BanCacheHit *BanCacheManager::AddHit(const std::string &ip, const std::string &t return b; } -BanCacheHit *BanCacheManager::GetHit(const std::string &ip) +BanCacheHit* BanCacheManager::GetHit(const std::string& ip) { BanCacheHash::iterator i = this->BanHash.find(ip); |
