diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-02-28 10:26:38 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-02-28 13:16:35 +0100 |
commit | 7375401eab02cb5bca37e2ea8c172b3cc9d413d8 (patch) | |
tree | 6dad613686752d7def4349ef04b2cca426c61273 /sal/rtl | |
parent | 24732bb12bfe0124d49733701226a34044c001a8 (diff) |
Use 'assert' where appropriate
Change-Id: Id7ecf874745fb32406bcd2250a954aaf3a345103
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130667
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/strtmpl.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |