Mercurial > hg > orthanc-transfers
changeset 114:fc60db3d2681 default tip
restore only check invariants in debug mode
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Fri, 14 Aug 2026 08:49:57 +0200 |
| parents | 6ba13c5c196a |
| children | |
| files | Framework/OrthancInstancesCache.cpp |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/OrthancInstancesCache.cpp Fri Aug 14 08:46:57 2026 +0200 +++ b/Framework/OrthancInstancesCache.cpp Fri Aug 14 08:49:57 2026 +0200 @@ -81,6 +81,7 @@ void OrthancInstancesCache::CheckInvariants() { +#ifndef NDEBUG size_t s = 0; assert(content_.size() == index_.GetSize()); @@ -104,6 +105,7 @@ content_.size() == 1 && memorySize_ == (content_.begin())->second->GetInfo().GetSize()); } +#endif }
