uno::Sequence: assert on negative length
Change-Id: Ie94a6042863bb0d91f2b61ac8a048182aea41c0a
This commit is contained in:
parent
abcbababca
commit
e2a1d1c491
@ -89,6 +89,7 @@ inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len )
|
||||
template< class E >
|
||||
inline Sequence< E >::Sequence( sal_Int32 len )
|
||||
{
|
||||
assert( len >= 0 );
|
||||
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
|
||||
#if ! defined EXCEPTIONS_OFF
|
||||
sal_Bool success =
|
||||
|
Loading…
x
Reference in New Issue
Block a user