summaryrefslogtreecommitdiff
path: root/include/com/sun/star/uno/Sequence.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/com/sun/star/uno/Sequence.hxx')
-rw-r--r--include/com/sun/star/uno/Sequence.hxx16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/com/sun/star/uno/Sequence.hxx b/include/com/sun/star/uno/Sequence.hxx
index a23fd3b48225..9ce88d35b2a4 100644
--- a/include/com/sun/star/uno/Sequence.hxx
+++ b/include/com/sun/star/uno/Sequence.hxx
@@ -76,16 +76,12 @@ template< class E >
inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len )
{
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
-#if ! defined EXCEPTIONS_OFF
sal_Bool success =
-#endif
::uno_type_sequence_construct(
&_pSequence, rType.getTypeLibType(),
const_cast< E * >( pElements ), len, (uno_AcquireFunc)cpp_acquire );
-#if ! defined EXCEPTIONS_OFF
if (! success)
throw ::std::bad_alloc();
-#endif
}
//______________________________________________________________________________
@@ -93,16 +89,12 @@ template< class E >
inline Sequence< E >::Sequence( sal_Int32 len )
{
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
-#if ! defined EXCEPTIONS_OFF
sal_Bool success =
-#endif
::uno_type_sequence_construct(
&_pSequence, rType.getTypeLibType(),
0, len, (uno_AcquireFunc)cpp_acquire );
-#if ! defined EXCEPTIONS_OFF
if (! success)
throw ::std::bad_alloc();
-#endif
}
//______________________________________________________________________________
@@ -152,16 +144,12 @@ template< class E >
inline E * Sequence< E >::getArray()
{
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
-#if ! defined EXCEPTIONS_OFF
sal_Bool success =
-#endif
::uno_type_sequence_reference2One(
&_pSequence, rType.getTypeLibType(),
(uno_AcquireFunc)cpp_acquire, (uno_ReleaseFunc)cpp_release );
-#if ! defined EXCEPTIONS_OFF
if (! success)
throw ::std::bad_alloc();
-#endif
return reinterpret_cast< E * >( _pSequence->elements );
}
@@ -187,16 +175,12 @@ template< class E >
inline void Sequence< E >::realloc( sal_Int32 nSize )
{
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
-#if !defined EXCEPTIONS_OFF
sal_Bool success =
-#endif
::uno_type_sequence_realloc(
&_pSequence, rType.getTypeLibType(), nSize,
(uno_AcquireFunc)cpp_acquire, (uno_ReleaseFunc)cpp_release );
-#if !defined EXCEPTIONS_OFF
if (!success)
throw ::std::bad_alloc();
-#endif
}
//------------------------------------------------------------------------------