sw/source/core/bastyp/swcache.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b2ce5ce87ecbaf4fcfc0f7341110f35c780cefb3
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Aug 30 10:33:49 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Aug 30 16:01:00 2022 +0200

    OSL_ENSURE->assert in SwCacheObj
    
    if these overflow, we will get more serious problems further down the
    line. Rather assert here.
    
    Change-Id: I70f27edb7c61a0c622a9f8fcb2e1eb075966ac59
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139035
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/bastyp/swcache.cxx 
b/sw/source/core/bastyp/swcache.cxx
index 1affca644884..7f44352beab6 100644
--- a/sw/source/core/bastyp/swcache.cxx
+++ b/sw/source/core/bastyp/swcache.cxx
@@ -471,13 +471,13 @@ SwCacheObj::~SwCacheObj()
 #ifdef DBG_UTIL
 void SwCacheObj::Lock()
 {
-    OSL_ENSURE( m_nLock < UCHAR_MAX, "Too many Locks for CacheObject." );
+    assert( m_nLock < UCHAR_MAX && "Too many Locks for CacheObject." );
     ++m_nLock;
 }
 
 void SwCacheObj::Unlock()
 {
-    OSL_ENSURE( m_nLock, "No more Locks available." );
+    assert( m_nLock && "No more Locks available." );
     --m_nLock;
 }
 #endif

Reply via email to