diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2023-05-15 14:45:05 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2023-05-15 14:45:05 +0200 |
commit | f395960adeea1f51f01ec8045d1e175926a6ea4a (patch) | |
tree | bf9d107fb5891c3e6bd0abeb4d49573c73230707 /src/utils/tokencollector.cpp | |
parent | f3071beef3ddd93bbe3ab6e30c14fc95a5112b9c (diff) | |
download | manaserv-f395960adeea1f51f01ec8045d1e175926a6ea4a.tar.gz manaserv-f395960adeea1f51f01ec8045d1e175926a6ea4a.tar.bz2 manaserv-f395960adeea1f51f01ec8045d1e175926a6ea4a.tar.xz manaserv-f395960adeea1f51f01ec8045d1e175926a6ea4a.zip |
General code cleanups
* Overall includes cleanup
* Use std::make_pair
* Make some functions const
Diffstat (limited to 'src/utils/tokencollector.cpp')
-rw-r--r-- | src/utils/tokencollector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/tokencollector.cpp b/src/utils/tokencollector.cpp index ecbae632..2af10445 100644 --- a/src/utils/tokencollector.cpp +++ b/src/utils/tokencollector.cpp @@ -92,7 +92,8 @@ void TokenCollectorBase::removeOutdated(time_t current) { // Timeout happens after 30 seconds. Much longer may actually pass, though. time_t threshold = current - 30; - if (threshold < mLastCheck) return; + if (threshold < mLastCheck) + return; std::list<Item>::iterator it; |