Mercurial > hg > orthanc
diff OrthancFramework/Sources/Cache/LeastRecentlyUsedIndex.h @ 4199:fbc49a65340a
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Sep 2020 20:28:20 +0200 |
parents | bf7b9edf6b81 |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Cache/LeastRecentlyUsedIndex.h Wed Sep 16 18:13:13 2020 +0200 +++ b/OrthancFramework/Sources/Cache/LeastRecentlyUsedIndex.h Wed Sep 16 20:28:20 2020 +0200 @@ -146,12 +146,11 @@ { keys.clear(); keys.reserve(GetSize()); - for (typename Index::const_iterator it = index_.begin(); it != index_.end(); it++) + for (typename Index::const_iterator it = index_.begin(); it != index_.end(); ++it) { keys.push_back(it->first); } } - }; @@ -168,7 +167,7 @@ assert(index_.size() == queue_.size()); for (typename Index::const_iterator - it = index_.begin(); it != index_.end(); it++) + it = index_.begin(); it != index_.end(); ++it) { assert(it->second != queue_.end()); assert(it->second->first == it->first);