Include <cassert>
Also, move assert into uno_type_sequence_construct so that all its callers benefit. Also, change some OSL_ENSURE to assert. Change-Id: Idd0a03c4aa6eed1db453db84602c01ff16f0d72c
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include "sal/config.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtl/alloc.h>
|
||||
@@ -771,6 +774,7 @@ sal_Bool SAL_CALL uno_type_sequence_construct(
|
||||
uno_AcquireFunc acquire )
|
||||
SAL_THROW_EXTERN_C()
|
||||
{
|
||||
assert( len >= 0 );
|
||||
bool ret;
|
||||
if (len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user