sal/rtl/strtmpl.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7375401eab02cb5bca37e2ea8c172b3cc9d413d8
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Feb 28 10:26:38 2022 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Feb 28 13:16:35 2022 +0100

    Use 'assert' where appropriate
    
    Change-Id: Id7ecf874745fb32406bcd2250a954aaf3a345103
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130667
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sal/rtl/strtmpl.hxx b/sal/rtl/strtmpl.hxx
index 9d14fbf77f23..db2df9a8ad75 100644
--- a/sal/rtl/strtmpl.hxx
+++ b/sal/rtl/strtmpl.hxx
@@ -1024,7 +1024,7 @@ void new_WithLength( IMPL_RTL_STRINGDATA** ppThis, 
sal_Int32 nLen )
             release( *ppThis );
 
         *ppThis = Alloc<IMPL_RTL_STRINGDATA>( nLen );
-        OSL_ASSERT(*ppThis != nullptr);
+        assert(*ppThis != nullptr);
         (*ppThis)->length   = 0;
 
         auto* pTempStr = (*ppThis)->buffer;
@@ -1402,7 +1402,7 @@ void newReplaceChars(IMPL_RTL_STRINGDATA** ppThis, 
IMPL_RTL_STRINGDATA* pStr)
     {
         IMPL_RTL_STRINGDATA* pOrg = *ppThis;
         *ppThis = Alloc<IMPL_RTL_STRINGDATA>(pStr->length);
-        OSL_ASSERT(*ppThis != nullptr);
+        assert(*ppThis != nullptr);
         auto* pNewCharStr = (*ppThis)->buffer;
         /* Copy String */
         const sal_Int32 nCount = pCharStr - pStr->buffer;

Reply via email to