diff options
Diffstat (limited to 'cppu/source/uno/copy.hxx')
-rw-r--r-- | cppu/source/uno/copy.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cppu/source/uno/copy.hxx b/cppu/source/uno/copy.hxx index 3ac9994a94b9..b6ecb3036577 100644 --- a/cppu/source/uno/copy.hxx +++ b/cppu/source/uno/copy.hxx @@ -33,7 +33,7 @@ namespace cppu inline uno_Sequence * allocSeq( sal_Int32 nElementSize, sal_Int32 nElements ) { - assert( nElements >= 0 && nElementSize >= 0 ); + OSL_ASSERT( nElements >= 0 && nElementSize >= 0 ); uno_Sequence * pSeq = nullptr; sal_uInt32 nSize = calcSeqMemSize( nElementSize, nElements ); if (nSize > 0) @@ -224,7 +224,7 @@ inline void _copyConstructAnyFromData( } break; default: - assert(false); + OSL_ASSERT(false); break; } } @@ -361,7 +361,7 @@ inline void _copyConstructAny( pDestAny->pReserved = nullptr; // either cpp or c-uno interface break; default: - assert(false); + OSL_ASSERT(false); break; } } @@ -462,7 +462,7 @@ inline uno_Sequence * icopyConstructSequence( pSourceElements[nPos], pSeqElementType, acquire, mapping ); - assert( pNew != nullptr ); + OSL_ASSERT( pNew != nullptr ); // ought never be a memory allocation problem, // because of reference counted sequence handles pDestElements[ nPos ] = pNew; |