diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-18 20:50:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-19 09:55:11 +0100 |
commit | 2ee4a46be759489328eb29feeb02880aab1e1331 (patch) | |
tree | e1332365722c0ac18af5c8d60210bee13fcffff3 /cppu | |
parent | d216219e69b20341cebcfae2c4aa11b0248993c7 (diff) |
convert these to true asserts
Change-Id: Ifd602f47dd57cdecff3c175d892993072fb82891
Reviewed-on: https://gerrit.libreoffice.org/48154
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/sequence.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppu/source/uno/sequence.cxx b/cppu/source/uno/sequence.cxx index 7d54c4244bdb..3420e5c8ec27 100644 --- a/cppu/source/uno/sequence.cxx +++ b/cppu/source/uno/sequence.cxx @@ -744,8 +744,8 @@ sal_Bool SAL_CALL uno_type_sequence_realloc( sal_Int32 nSize, uno_AcquireFunc acquire, uno_ReleaseFunc release ) SAL_THROW_EXTERN_C() { - OSL_ENSURE( ppSequence, "### null ptr!" ); - OSL_ENSURE( nSize >= 0, "### new size must be at least 0!" ); + assert(ppSequence && "### null ptr!"); + assert(nSize >= 0 && "### new size must be at least 0!"); bool ret = true; if (nSize != (*ppSequence)->nElements) |