diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-01-15 11:24:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-01-15 11:25:59 +0100 |
commit | d55155cad0926f61b5745260196b93e95471d06a (patch) | |
tree | 01dcc4daf24997341422d2ae48c3890232e26d15 /cppu/source | |
parent | 9f813d9f692d10f6d151c27617c2c5a36fac8c19 (diff) |
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
Diffstat (limited to 'cppu/source')
-rw-r--r-- | cppu/source/uno/sequence.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cppu/source/uno/sequence.cxx b/cppu/source/uno/sequence.cxx index d9e28fb7f9ad..d570461f9297 100644 --- a/cppu/source/uno/sequence.cxx +++ b/cppu/source/uno/sequence.cxx @@ -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) { |