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:
Stephan Bergmann
2013-01-15 11:24:46 +01:00
parent 9f813d9f69
commit d55155cad0
2 changed files with 10 additions and 8 deletions

View File

@@ -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)
{