Kaydet (Commit) 41e35159 authored tarafından Noel Grandin's avatar Noel Grandin

cppu: remove SAL_THROW macro

Change-Id: I2f1909f953846f0d0b6fb402b4beb373bba8b2a8
üst bf37694a
...@@ -58,8 +58,7 @@ public: ...@@ -58,8 +58,7 @@ public:
typelib_InterfaceTypeDescription * pTypeDescr, typelib_InterfaceTypeDescription * pTypeDescr,
rtl::OUString const & rOId, rtl::OUString const & rOId,
cppu::helper::purpenv::ProbeFun * probeFun, cppu::helper::purpenv::ProbeFun * probeFun,
void * pProbeContext) void * pProbeContext);
SAL_THROW(());
~Proxy(void); ~Proxy(void);
void acquire(void); void acquire(void);
......
...@@ -119,14 +119,14 @@ Mapping::Mapping(uno_Environment * pFrom, ...@@ -119,14 +119,14 @@ Mapping::Mapping(uno_Environment * pFrom,
uno_Environment * pTo, uno_Environment * pTo,
cppu::helper::purpenv::ProbeFun * probeFun, cppu::helper::purpenv::ProbeFun * probeFun,
void * pProbeContext void * pProbeContext
) SAL_THROW(()) )
: m_from (pFrom), : m_from (pFrom),
m_to (pTo), m_to (pTo),
m_nCount (1), m_nCount (1),
m_probeFun(probeFun), m_probeFun(probeFun),
m_pContext(pProbeContext) m_pContext(pProbeContext)
{ {
LOG_LIFECYCLE_cppu_helper_purpenv_Mapping_emit(fprintf(stderr, "LIFE: %s -> %p\n", "Mapping::Mapping(uno_Environment * pFrom, uno_Environment * pTo) SAL_THROW(())", this)); LOG_LIFECYCLE_cppu_helper_purpenv_Mapping_emit(fprintf(stderr, "LIFE: %s -> %p\n", "Mapping::Mapping(uno_Environment * pFrom, uno_Environment * pTo)", this));
uno_Mapping::acquire = s_acquire; uno_Mapping::acquire = s_acquire;
uno_Mapping::release = s_release; uno_Mapping::release = s_release;
...@@ -189,7 +189,7 @@ void Mapping::mapInterface( ...@@ -189,7 +189,7 @@ void Mapping::mapInterface(
} }
void Mapping::acquire() SAL_THROW(()) void Mapping::acquire()
{ {
if (osl_atomic_increment(&m_nCount) == 1) if (osl_atomic_increment(&m_nCount) == 1)
{ {
...@@ -199,7 +199,7 @@ void Mapping::acquire() SAL_THROW(()) ...@@ -199,7 +199,7 @@ void Mapping::acquire() SAL_THROW(())
} }
} }
void Mapping::release() SAL_THROW(()) void Mapping::release()
{ {
if (osl_atomic_decrement(&m_nCount) == 0) if (osl_atomic_decrement(&m_nCount) == 0)
::uno_revokeMapping(this); ::uno_revokeMapping(this);
......
...@@ -41,7 +41,6 @@ using namespace com::sun::star; ...@@ -41,7 +41,6 @@ using namespace com::sun::star;
static bool relatesToInterface(typelib_TypeDescription * pTypeDescr) static bool relatesToInterface(typelib_TypeDescription * pTypeDescr)
SAL_THROW(())
{ {
switch (pTypeDescr->eTypeClass) switch (pTypeDescr->eTypeClass)
{ {
...@@ -211,7 +210,6 @@ Proxy::Proxy(uno::Mapping const & to_from, ...@@ -211,7 +210,6 @@ Proxy::Proxy(uno::Mapping const & to_from,
cppu::helper::purpenv::ProbeFun * probeFun, cppu::helper::purpenv::ProbeFun * probeFun,
void * pProbeContext void * pProbeContext
) )
SAL_THROW(())
: m_nRef (1), : m_nRef (1),
m_from (pFrom), m_from (pFrom),
m_to (pTo), m_to (pTo),
......
...@@ -103,20 +103,20 @@ class ThreadKey ...@@ -103,20 +103,20 @@ class ThreadKey
oslThreadKeyCallbackFunction _pCallback; oslThreadKeyCallbackFunction _pCallback;
public: public:
inline oslThreadKey getThreadKey() SAL_THROW(()); inline oslThreadKey getThreadKey();
inline ThreadKey( oslThreadKeyCallbackFunction pCallback ) SAL_THROW(()); inline ThreadKey( oslThreadKeyCallbackFunction pCallback );
inline ~ThreadKey() SAL_THROW(()); inline ~ThreadKey();
}; };
inline ThreadKey::ThreadKey( oslThreadKeyCallbackFunction pCallback ) SAL_THROW(()) inline ThreadKey::ThreadKey( oslThreadKeyCallbackFunction pCallback )
: _bInit( false ) : _bInit( false )
, _hThreadKey( 0 ) , _hThreadKey( 0 )
, _pCallback( pCallback ) , _pCallback( pCallback )
{ {
} }
inline ThreadKey::~ThreadKey() SAL_THROW(()) inline ThreadKey::~ThreadKey()
{ {
if (_bInit) if (_bInit)
{ {
...@@ -124,7 +124,7 @@ inline ThreadKey::~ThreadKey() SAL_THROW(()) ...@@ -124,7 +124,7 @@ inline ThreadKey::~ThreadKey() SAL_THROW(())
} }
} }
inline oslThreadKey ThreadKey::getThreadKey() SAL_THROW(()) inline oslThreadKey ThreadKey::getThreadKey()
{ {
if (! _bInit) if (! _bInit)
{ {
...@@ -160,7 +160,7 @@ extern "C" void SAL_CALL delete_IdContainer( void * p ) ...@@ -160,7 +160,7 @@ extern "C" void SAL_CALL delete_IdContainer( void * p )
} }
} }
IdContainer * getIdContainer() SAL_THROW(()) IdContainer * getIdContainer()
{ {
static ThreadKey s_key( delete_IdContainer ); static ThreadKey s_key( delete_IdContainer );
oslThreadKey aKey = s_key.getThreadKey(); oslThreadKey aKey = s_key.getThreadKey();
......
...@@ -39,7 +39,7 @@ struct IdContainer ...@@ -39,7 +39,7 @@ struct IdContainer
sal_Sequence * pCurrentId; sal_Sequence * pCurrentId;
}; };
IdContainer * getIdContainer() SAL_THROW(()); IdContainer * getIdContainer();
} }
#endif #endif
......
...@@ -89,7 +89,6 @@ struct AlignSize_Impl ...@@ -89,7 +89,6 @@ struct AlignSize_Impl
static sal_Int32 nMaxAlignment = (sal_Int32)( (sal_Size)(&((AlignSize_Impl *) 16)->dDouble) - 16); static sal_Int32 nMaxAlignment = (sal_Int32)( (sal_Size)(&((AlignSize_Impl *) 16)->dDouble) - 16);
static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment ) static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
SAL_THROW(())
{ {
if( nRequestedAlignment > nMaxAlignment ) if( nRequestedAlignment > nMaxAlignment )
nRequestedAlignment = nMaxAlignment; nRequestedAlignment = nMaxAlignment;
...@@ -101,7 +100,6 @@ static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment ) ...@@ -101,7 +100,6 @@ static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
*/ */
static inline sal_Int32 newAlignedSize( static inline sal_Int32 newAlignedSize(
sal_Int32 OldSize, sal_Int32 ElementSize, sal_Int32 NeededAlignment ) sal_Int32 OldSize, sal_Int32 ElementSize, sal_Int32 NeededAlignment )
SAL_THROW(())
{ {
NeededAlignment = adjustAlignment( NeededAlignment ); NeededAlignment = adjustAlignment( NeededAlignment );
return (OldSize + NeededAlignment -1) / NeededAlignment * NeededAlignment + ElementSize; return (OldSize + NeededAlignment -1) / NeededAlignment * NeededAlignment + ElementSize;
...@@ -116,7 +114,6 @@ namespace ...@@ -116,7 +114,6 @@ namespace
// !for NOT REALLY WEAK TYPES only! // !for NOT REALLY WEAK TYPES only!
static inline typelib_TypeDescriptionReference * igetTypeByName( rtl_uString * pTypeName ) static inline typelib_TypeDescriptionReference * igetTypeByName( rtl_uString * pTypeName )
SAL_THROW(())
{ {
typelib_TypeDescriptionReference * pRef = 0; typelib_TypeDescriptionReference * pRef = 0;
::typelib_typedescriptionreference_getByName( &pRef, pTypeName ); ::typelib_typedescriptionreference_getByName( &pRef, pTypeName );
......
...@@ -81,7 +81,6 @@ struct AlignSize_Impl ...@@ -81,7 +81,6 @@ struct AlignSize_Impl
static sal_Int32 nMaxAlignment = (sal_Int32)( (sal_Size)(&((AlignSize_Impl *) 16)->dDouble) - 16); static sal_Int32 nMaxAlignment = (sal_Int32)( (sal_Size)(&((AlignSize_Impl *) 16)->dDouble) - 16);
static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment ) static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
SAL_THROW(())
{ {
if( nRequestedAlignment > nMaxAlignment ) if( nRequestedAlignment > nMaxAlignment )
nRequestedAlignment = nMaxAlignment; nRequestedAlignment = nMaxAlignment;
...@@ -93,20 +92,17 @@ static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment ) ...@@ -93,20 +92,17 @@ static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
*/ */
static inline sal_Int32 newAlignedSize( static inline sal_Int32 newAlignedSize(
sal_Int32 OldSize, sal_Int32 ElementSize, sal_Int32 NeededAlignment ) sal_Int32 OldSize, sal_Int32 ElementSize, sal_Int32 NeededAlignment )
SAL_THROW(())
{ {
NeededAlignment = adjustAlignment( NeededAlignment ); NeededAlignment = adjustAlignment( NeededAlignment );
return (OldSize + NeededAlignment -1) / NeededAlignment * NeededAlignment + ElementSize; return (OldSize + NeededAlignment -1) / NeededAlignment * NeededAlignment + ElementSize;
} }
static inline bool reallyWeak( typelib_TypeClass eTypeClass ) static inline bool reallyWeak( typelib_TypeClass eTypeClass )
SAL_THROW(())
{ {
return TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( eTypeClass ); return TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( eTypeClass );
} }
static inline sal_Int32 getDescriptionSize( typelib_TypeClass eTypeClass ) static inline sal_Int32 getDescriptionSize( typelib_TypeClass eTypeClass )
SAL_THROW(())
{ {
OSL_ASSERT( typelib_TypeClass_TYPEDEF != eTypeClass ); OSL_ASSERT( typelib_TypeClass_TYPEDEF != eTypeClass );
...@@ -159,14 +155,14 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_getByName( ...@@ -159,14 +155,14 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
struct equalStr_Impl struct equalStr_Impl
{ {
bool operator()(const sal_Unicode * const & s1, const sal_Unicode * const & s2) const SAL_THROW(()) bool operator()(const sal_Unicode * const & s1, const sal_Unicode * const & s2) const
{ return 0 == rtl_ustr_compare( s1, s2 ); } { return 0 == rtl_ustr_compare( s1, s2 ); }
}; };
struct hashStr_Impl struct hashStr_Impl
{ {
size_t operator()(const sal_Unicode * const & s) const SAL_THROW(()) size_t operator()(const sal_Unicode * const & s) const
{ return rtl_ustr_hashCode( s ); } { return rtl_ustr_hashCode( s ); }
}; };
...@@ -195,9 +191,9 @@ struct TypeDescriptor_Init_Impl ...@@ -195,9 +191,9 @@ struct TypeDescriptor_Init_Impl
// The mutex to guard all type library accesses // The mutex to guard all type library accesses
Mutex * pMutex; Mutex * pMutex;
inline Mutex & getMutex() SAL_THROW(()); inline Mutex & getMutex();
inline void callChain( typelib_TypeDescription ** ppRet, rtl_uString * pName ) SAL_THROW(()); inline void callChain( typelib_TypeDescription ** ppRet, rtl_uString * pName );
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
// only for debugging // only for debugging
...@@ -223,10 +219,10 @@ struct TypeDescriptor_Init_Impl ...@@ -223,10 +219,10 @@ struct TypeDescriptor_Init_Impl
#endif #endif
{} {}
~TypeDescriptor_Init_Impl() SAL_THROW(()); ~TypeDescriptor_Init_Impl();
}; };
inline Mutex & TypeDescriptor_Init_Impl::getMutex() SAL_THROW(()) inline Mutex & TypeDescriptor_Init_Impl::getMutex()
{ {
if( !pMutex ) if( !pMutex )
{ {
...@@ -239,7 +235,6 @@ inline Mutex & TypeDescriptor_Init_Impl::getMutex() SAL_THROW(()) ...@@ -239,7 +235,6 @@ inline Mutex & TypeDescriptor_Init_Impl::getMutex() SAL_THROW(())
inline void TypeDescriptor_Init_Impl::callChain( inline void TypeDescriptor_Init_Impl::callChain(
typelib_TypeDescription ** ppRet, rtl_uString * pName ) typelib_TypeDescription ** ppRet, rtl_uString * pName )
SAL_THROW(())
{ {
assert(ppRet != 0); assert(ppRet != 0);
assert(*ppRet == 0); assert(*ppRet == 0);
...@@ -258,7 +253,7 @@ inline void TypeDescriptor_Init_Impl::callChain( ...@@ -258,7 +253,7 @@ inline void TypeDescriptor_Init_Impl::callChain(
} }
TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() SAL_THROW(()) TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl()
{ {
if( pCache ) if( pCache )
{ {
...@@ -394,7 +389,6 @@ extern "C" sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize( ...@@ -394,7 +389,6 @@ extern "C" sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
static inline void typelib_typedescription_initTables( static inline void typelib_typedescription_initTables(
typelib_TypeDescription * pTD ) typelib_TypeDescription * pTD )
SAL_THROW(())
{ {
typelib_InterfaceTypeDescription * pITD = (typelib_InterfaceTypeDescription *)pTD; typelib_InterfaceTypeDescription * pITD = (typelib_InterfaceTypeDescription *)pTD;
...@@ -1307,7 +1301,6 @@ void deleteExceptions( ...@@ -1307,7 +1301,6 @@ void deleteExceptions(
// frees anything except typelib_TypeDescription base! // frees anything except typelib_TypeDescription base!
static inline void typelib_typedescription_destructExtendedMembers( static inline void typelib_typedescription_destructExtendedMembers(
typelib_TypeDescription * pTD ) typelib_TypeDescription * pTD )
SAL_THROW(())
{ {
OSL_ASSERT( typelib_TypeClass_TYPEDEF != pTD->eTypeClass ); OSL_ASSERT( typelib_TypeClass_TYPEDEF != pTD->eTypeClass );
...@@ -1619,7 +1612,6 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_register( ...@@ -1619,7 +1612,6 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_register(
static inline bool type_equals( static inline bool type_equals(
typelib_TypeDescriptionReference * p1, typelib_TypeDescriptionReference * p2 ) typelib_TypeDescriptionReference * p1, typelib_TypeDescriptionReference * p2 )
SAL_THROW(())
{ {
return (p1 == p2 || return (p1 == p2 ||
(p1->eTypeClass == p2->eTypeClass && (p1->eTypeClass == p2->eTypeClass &&
......
...@@ -38,12 +38,12 @@ struct IdentityMapping : public uno_Mapping ...@@ -38,12 +38,12 @@ struct IdentityMapping : public uno_Mapping
extern "C" extern "C"
{ {
static void SAL_CALL s_free(uno_Mapping * pMapping) SAL_THROW(()) static void SAL_CALL s_free(uno_Mapping * pMapping)
{ {
delete static_cast<IdentityMapping *>(pMapping); delete static_cast<IdentityMapping *>(pMapping);
} }
static void SAL_CALL s_acquire(uno_Mapping * pMapping) SAL_THROW(()) static void SAL_CALL s_acquire(uno_Mapping * pMapping)
{ {
static rtl::OUString s_purpose; static rtl::OUString s_purpose;
...@@ -58,7 +58,7 @@ static void SAL_CALL s_acquire(uno_Mapping * pMapping) SAL_THROW(()) ...@@ -58,7 +58,7 @@ static void SAL_CALL s_acquire(uno_Mapping * pMapping) SAL_THROW(())
} }
} }
static void SAL_CALL s_release(uno_Mapping * pMapping) SAL_THROW(()) static void SAL_CALL s_release(uno_Mapping * pMapping)
{ {
if (!osl_atomic_decrement(&static_cast<IdentityMapping *>(pMapping )->m_nRef)) if (!osl_atomic_decrement(&static_cast<IdentityMapping *>(pMapping )->m_nRef))
uno_revokeMapping(pMapping); uno_revokeMapping(pMapping);
...@@ -68,7 +68,6 @@ static void SAL_CALL s_mapInterface(uno_Mapping * pMapping ...@@ -68,7 +68,6 @@ static void SAL_CALL s_mapInterface(uno_Mapping * pMapping
void ** ppOut, void ** ppOut,
void * pInterface, void * pInterface,
SAL_UNUSED_PARAMETER struct _typelib_InterfaceTypeDescription * /*pInterfaceTypeDescr*/) SAL_UNUSED_PARAMETER struct _typelib_InterfaceTypeDescription * /*pInterfaceTypeDescr*/)
SAL_THROW(())
{ {
*ppOut = pInterface; *ppOut = pInterface;
...@@ -92,7 +91,7 @@ IdentityMapping::IdentityMapping(uno::Environment const & rEnv) ...@@ -92,7 +91,7 @@ IdentityMapping::IdentityMapping(uno::Environment const & rEnv)
} }
uno_Mapping * createIdentityMapping(uno::Environment const & rEnv) SAL_THROW(()) uno_Mapping * createIdentityMapping(uno::Environment const & rEnv)
{ {
return new IdentityMapping(rEnv); return new IdentityMapping(rEnv);
} }
......
...@@ -39,7 +39,7 @@ namespace cppu ...@@ -39,7 +39,7 @@ namespace cppu
inline void _assignInterface( inline void _assignInterface(
void ** ppDest, void * pSource, void ** ppDest, void * pSource,
uno_AcquireFunc acquire, uno_ReleaseFunc release ) uno_AcquireFunc acquire, uno_ReleaseFunc release )
SAL_THROW(())
{ {
_acquire( pSource, acquire ); _acquire( pSource, acquire );
void * const pToBeReleased = *ppDest; void * const pToBeReleased = *ppDest;
...@@ -51,7 +51,6 @@ inline void * _queryInterface( ...@@ -51,7 +51,6 @@ inline void * _queryInterface(
void * pSource, void * pSource,
typelib_TypeDescriptionReference * pDestType, typelib_TypeDescriptionReference * pDestType,
uno_QueryInterfaceFunc queryInterface ) uno_QueryInterfaceFunc queryInterface )
SAL_THROW(())
{ {
if (pSource) if (pSource)
{ {
...@@ -65,14 +64,12 @@ inline void * _queryInterface( ...@@ -65,14 +64,12 @@ inline void * _queryInterface(
bool assignStruct( bool assignStruct(
void * pDest, void * pSource, void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release );
SAL_THROW(());
inline bool _assignStruct( inline bool _assignStruct(
void * pDest, void * pSource, void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
SAL_THROW(())
{ {
if (pTypeDescr->pBaseTypeDescription) if (pTypeDescr->pBaseTypeDescription)
{ {
...@@ -107,7 +104,6 @@ inline bool _assignData( ...@@ -107,7 +104,6 @@ inline bool _assignData(
void * pSource, void * pSource,
typelib_TypeDescriptionReference * pSourceType, typelib_TypeDescription * pSourceTypeDescr, typelib_TypeDescriptionReference * pSourceType, typelib_TypeDescription * pSourceTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
SAL_THROW(())
{ {
if (pDest == pSource) if (pDest == pSource)
return _type_equals( pDestType, pSourceType ); return _type_equals( pDestType, pSourceType );
......
...@@ -32,13 +32,11 @@ namespace cppu ...@@ -32,13 +32,11 @@ namespace cppu
void defaultConstructStruct( void defaultConstructStruct(
void * pMem, void * pMem,
typelib_CompoundTypeDescription * pCompType ) typelib_CompoundTypeDescription * pCompType );
SAL_THROW(());
inline void _defaultConstructStruct( inline void _defaultConstructStruct(
void * pMem, void * pMem,
typelib_CompoundTypeDescription * pTypeDescr ) typelib_CompoundTypeDescription * pTypeDescr )
SAL_THROW(())
{ {
if (pTypeDescr->pBaseTypeDescription) if (pTypeDescr->pBaseTypeDescription)
{ {
...@@ -60,7 +58,6 @@ inline void _defaultConstructData( ...@@ -60,7 +58,6 @@ inline void _defaultConstructData(
void * pMem, void * pMem,
typelib_TypeDescriptionReference * pType, typelib_TypeDescriptionReference * pType,
typelib_TypeDescription * pTypeDescr ) typelib_TypeDescription * pTypeDescr )
SAL_THROW(())
{ {
switch (pType->eTypeClass) switch (pType->eTypeClass)
{ {
......
...@@ -54,14 +54,12 @@ inline uno_Sequence * allocSeq( ...@@ -54,14 +54,12 @@ inline uno_Sequence * allocSeq(
void copyConstructStruct( void copyConstructStruct(
void * pDest, void * pSource, void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping ) uno_AcquireFunc acquire, uno_Mapping * mapping );
SAL_THROW (());
inline void _copyConstructStruct( inline void _copyConstructStruct(
void * pDest, void * pSource, void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping ) uno_AcquireFunc acquire, uno_Mapping * mapping )
SAL_THROW (())
{ {
if (pTypeDescr->pBaseTypeDescription) if (pTypeDescr->pBaseTypeDescription)
{ {
...@@ -107,7 +105,6 @@ inline void _copyConstructAnyFromData( ...@@ -107,7 +105,6 @@ inline void _copyConstructAnyFromData(
uno_Any * pDestAny, void * pSource, uno_Any * pDestAny, void * pSource,
typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr, typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping ) uno_AcquireFunc acquire, uno_Mapping * mapping )
SAL_THROW (())
{ {
TYPE_ACQUIRE( pType ); TYPE_ACQUIRE( pType );
pDestAny->pType = pType; pDestAny->pType = pType;
...@@ -237,7 +234,6 @@ inline void _copyConstructAny( ...@@ -237,7 +234,6 @@ inline void _copyConstructAny(
uno_Any * pDestAny, void * pSource, uno_Any * pDestAny, void * pSource,
typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr, typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping ) uno_AcquireFunc acquire, uno_Mapping * mapping )
SAL_THROW (())
{ {
if (typelib_TypeClass_VOID == pType->eTypeClass) if (typelib_TypeClass_VOID == pType->eTypeClass)
{ {
...@@ -521,7 +517,6 @@ inline void _copyConstructData( ...@@ -521,7 +517,6 @@ inline void _copyConstructData(
void * pDest, void * pSource, void * pDest, void * pSource,
typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr, typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping ) uno_AcquireFunc acquire, uno_Mapping * mapping )
SAL_THROW (())
{ {
switch (pType->eTypeClass) switch (pType->eTypeClass)
{ {
......
...@@ -117,7 +117,6 @@ void * binuno_queryInterface( void * pUnoI, typelib_TypeDescriptionReference * p ...@@ -117,7 +117,6 @@ void * binuno_queryInterface( void * pUnoI, typelib_TypeDescriptionReference * p
void defaultConstructStruct( void defaultConstructStruct(
void * pMem, void * pMem,
typelib_CompoundTypeDescription * pCompType ) typelib_CompoundTypeDescription * pCompType )
SAL_THROW(())
{ {
_defaultConstructStruct( pMem, pCompType ); _defaultConstructStruct( pMem, pCompType );
} }
...@@ -126,7 +125,6 @@ void copyConstructStruct( ...@@ -126,7 +125,6 @@ void copyConstructStruct(
void * pDest, void * pSource, void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping ) uno_AcquireFunc acquire, uno_Mapping * mapping )
SAL_THROW(())
{ {
_copyConstructStruct( pDest, pSource, pTypeDescr, acquire, mapping ); _copyConstructStruct( pDest, pSource, pTypeDescr, acquire, mapping );
} }
...@@ -135,7 +133,6 @@ void destructStruct( ...@@ -135,7 +133,6 @@ void destructStruct(
void * pValue, void * pValue,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_ReleaseFunc release ) uno_ReleaseFunc release )
SAL_THROW(())
{ {
_destructStruct( pValue, pTypeDescr, release ); _destructStruct( pValue, pTypeDescr, release );
} }
...@@ -144,7 +141,6 @@ bool equalStruct( ...@@ -144,7 +141,6 @@ bool equalStruct(
void * pDest, void *pSource, void * pDest, void *pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
SAL_THROW(())
{ {
return _equalStruct( pDest, pSource, pTypeDescr, queryInterface, release ); return _equalStruct( pDest, pSource, pTypeDescr, queryInterface, release );
} }
...@@ -153,7 +149,6 @@ bool assignStruct( ...@@ -153,7 +149,6 @@ bool assignStruct(
void * pDest, void * pSource, void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
SAL_THROW(())
{ {
return _assignStruct( pDest, pSource, pTypeDescr, queryInterface, acquire, release ); return _assignStruct( pDest, pSource, pTypeDescr, queryInterface, acquire, release );
} }
...@@ -182,7 +177,6 @@ bool equalSequence( ...@@ -182,7 +177,6 @@ bool equalSequence(
uno_Sequence * pDest, uno_Sequence * pSource, uno_Sequence * pDest, uno_Sequence * pSource,
typelib_TypeDescriptionReference * pElementType, typelib_TypeDescriptionReference * pElementType,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
SAL_THROW(())
{ {
return _equalSequence( pDest, pSource, pElementType, queryInterface, release ); return _equalSequence( pDest, pSource, pElementType, queryInterface, release );
} }
......
...@@ -33,14 +33,12 @@ namespace cppu ...@@ -33,14 +33,12 @@ namespace cppu
void destructStruct( void destructStruct(
void * pValue, void * pValue,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_ReleaseFunc release ) uno_ReleaseFunc release );
SAL_THROW(());
inline void _destructStruct( inline void _destructStruct(
void * pValue, void * pValue,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_ReleaseFunc release ) uno_ReleaseFunc release )
SAL_THROW(())
{ {
if (pTypeDescr->pBaseTypeDescription) if (pTypeDescr->pBaseTypeDescription)
{ {
...@@ -69,7 +67,6 @@ void destructSequence( ...@@ -69,7 +67,6 @@ void destructSequence(
inline void _destructAny( inline void _destructAny(
uno_Any * pAny, uno_Any * pAny,
uno_ReleaseFunc release ) uno_ReleaseFunc release )
SAL_THROW(())
{ {
typelib_TypeDescriptionReference * pType = pAny->pType; typelib_TypeDescriptionReference * pType = pAny->pType;
...@@ -142,7 +139,6 @@ inline sal_Int32 idestructElements( ...@@ -142,7 +139,6 @@ inline sal_Int32 idestructElements(
void * pElements, typelib_TypeDescriptionReference * pElementType, void * pElements, typelib_TypeDescriptionReference * pElementType,
sal_Int32 nStartIndex, sal_Int32 nStopIndex, sal_Int32 nStartIndex, sal_Int32 nStopIndex,
uno_ReleaseFunc release ) uno_ReleaseFunc release )
SAL_THROW(())
{ {
switch (pElementType->eTypeClass) switch (pElementType->eTypeClass)
{ {
...@@ -297,7 +293,6 @@ inline void _destructData( ...@@ -297,7 +293,6 @@ inline void _destructData(
typelib_TypeDescriptionReference * pType, typelib_TypeDescriptionReference * pType,
typelib_TypeDescription * pTypeDescr, typelib_TypeDescription * pTypeDescr,
uno_ReleaseFunc release ) uno_ReleaseFunc release )
SAL_THROW(())
{ {
switch (pType->eTypeClass) switch (pType->eTypeClass)
{ {
......
...@@ -36,7 +36,6 @@ namespace cppu ...@@ -36,7 +36,6 @@ namespace cppu
inline bool _equalObject( inline bool _equalObject(
void * pI1, void * pI2, void * pI1, void * pI2,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
SAL_THROW(())
{ {
if (pI1 == pI2) if (pI1 == pI2)
return true; return true;
...@@ -66,14 +65,12 @@ inline bool _equalObject( ...@@ -66,14 +65,12 @@ inline bool _equalObject(
bool equalStruct( bool equalStruct(
void * pDest, void *pSource, void * pDest, void *pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release );
SAL_THROW(());
inline bool _equalStruct( inline bool _equalStruct(
void * pDest, void *pSource, void * pDest, void *pSource,
typelib_CompoundTypeDescription * pTypeDescr, typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
SAL_THROW(())
{ {
if (pTypeDescr->pBaseTypeDescription && if (pTypeDescr->pBaseTypeDescription &&
!equalStruct( pDest, pSource, pTypeDescr->pBaseTypeDescription, queryInterface, release )) !equalStruct( pDest, pSource, pTypeDescr->pBaseTypeDescription, queryInterface, release ))
...@@ -103,14 +100,12 @@ inline bool _equalStruct( ...@@ -103,14 +100,12 @@ inline bool _equalStruct(
bool equalSequence( bool equalSequence(
uno_Sequence * pDest, uno_Sequence * pSource, uno_Sequence * pDest, uno_Sequence * pSource,
typelib_TypeDescriptionReference * pElementType, typelib_TypeDescriptionReference * pElementType,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release );
SAL_THROW(());
inline bool _equalSequence( inline bool _equalSequence(
uno_Sequence * pDest, uno_Sequence * pSource, uno_Sequence * pDest, uno_Sequence * pSource,
typelib_TypeDescriptionReference * pElementType, typelib_TypeDescriptionReference * pElementType,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
SAL_THROW(())
{ {
if (pDest == pSource) if (pDest == pSource)
return true; return true;
...@@ -269,7 +264,6 @@ inline bool _equalData( ...@@ -269,7 +264,6 @@ inline bool _equalData(
void * pSource, void * pSource,
typelib_TypeDescriptionReference * pSourceType, typelib_TypeDescriptionReference * pSourceType,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release ) uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
SAL_THROW(())
{ {
typelib_TypeClass eSourceTypeClass, eDestTypeClass; typelib_TypeClass eSourceTypeClass, eDestTypeClass;
while (typelib_TypeClass_ANY == (eDestTypeClass = pDestType->eTypeClass)) while (typelib_TypeClass_ANY == (eDestTypeClass = pDestType->eTypeClass))
......
...@@ -60,39 +60,39 @@ class Mapping ...@@ -60,39 +60,39 @@ class Mapping
uno_Mapping * _pMapping; uno_Mapping * _pMapping;
public: public:
inline explicit Mapping( uno_Mapping * pMapping = 0 ) SAL_THROW(()); inline explicit Mapping( uno_Mapping * pMapping = 0 );
inline Mapping( const Mapping & rMapping ) SAL_THROW(()); inline Mapping( const Mapping & rMapping );
inline ~Mapping() SAL_THROW(()); inline ~Mapping();
inline Mapping & SAL_CALL operator = ( uno_Mapping * pMapping ) SAL_THROW(()); inline Mapping & SAL_CALL operator = ( uno_Mapping * pMapping );
inline Mapping & SAL_CALL operator = ( const Mapping & rMapping ) SAL_THROW(()) inline Mapping & SAL_CALL operator = ( const Mapping & rMapping )
{ return operator = ( rMapping._pMapping ); } { return operator = ( rMapping._pMapping ); }
inline uno_Mapping * SAL_CALL get() const SAL_THROW(()) inline uno_Mapping * SAL_CALL get() const
{ return _pMapping; } { return _pMapping; }
inline bool SAL_CALL is() const SAL_THROW(()) inline bool SAL_CALL is() const
{ return (_pMapping != 0); } { return (_pMapping != 0); }
}; };
inline Mapping::Mapping( uno_Mapping * pMapping ) SAL_THROW(()) inline Mapping::Mapping( uno_Mapping * pMapping )
: _pMapping( pMapping ) : _pMapping( pMapping )
{ {
if (_pMapping) if (_pMapping)
(*_pMapping->acquire)( _pMapping ); (*_pMapping->acquire)( _pMapping );
} }
inline Mapping::Mapping( const Mapping & rMapping ) SAL_THROW(()) inline Mapping::Mapping( const Mapping & rMapping )
: _pMapping( rMapping._pMapping ) : _pMapping( rMapping._pMapping )
{ {
if (_pMapping) if (_pMapping)
(*_pMapping->acquire)( _pMapping ); (*_pMapping->acquire)( _pMapping );
} }
inline Mapping::~Mapping() SAL_THROW(()) inline Mapping::~Mapping()
{ {
if (_pMapping) if (_pMapping)
(*_pMapping->release)( _pMapping ); (*_pMapping->release)( _pMapping );
} }
inline Mapping & Mapping::operator = ( uno_Mapping * pMapping ) SAL_THROW(()) inline Mapping & Mapping::operator = ( uno_Mapping * pMapping )
{ {
if (pMapping) if (pMapping)
(*pMapping->acquire)( pMapping ); (*pMapping->acquire)( pMapping );
...@@ -113,7 +113,6 @@ struct MappingEntry ...@@ -113,7 +113,6 @@ struct MappingEntry
MappingEntry( MappingEntry(
uno_Mapping * pMapping_, uno_freeMappingFunc freeMapping_, uno_Mapping * pMapping_, uno_freeMappingFunc freeMapping_,
const OUString & rMappingName_ ) const OUString & rMappingName_ )
SAL_THROW(())
: nRef( 1 ) : nRef( 1 )
, pMapping( pMapping_ ) , pMapping( pMapping_ )
, freeMapping( freeMapping_ ) , freeMapping( freeMapping_ )
...@@ -123,13 +122,13 @@ struct MappingEntry ...@@ -123,13 +122,13 @@ struct MappingEntry
struct FctOUStringHash : public std::unary_function< const OUString &, size_t > struct FctOUStringHash : public std::unary_function< const OUString &, size_t >
{ {
size_t operator()( const OUString & rKey ) const SAL_THROW(()) size_t operator()( const OUString & rKey ) const
{ return (size_t)rKey.hashCode(); } { return (size_t)rKey.hashCode(); }
}; };
struct FctPtrHash : public std::unary_function< uno_Mapping *, size_t > struct FctPtrHash : public std::unary_function< uno_Mapping *, size_t >
{ {
size_t operator()( uno_Mapping * pKey ) const SAL_THROW(()) size_t operator()( uno_Mapping * pKey ) const
{ return (size_t)pKey; } { return (size_t)pKey; }
}; };
...@@ -155,7 +154,7 @@ struct MappingsData ...@@ -155,7 +154,7 @@ struct MappingsData
t_OUStringSet aNegativeLibs; t_OUStringSet aNegativeLibs;
}; };
static MappingsData & getMappingsData() SAL_THROW(()) static MappingsData & getMappingsData()
{ {
static MappingsData * s_p = 0; static MappingsData * s_p = 0;
if (! s_p) if (! s_p)
...@@ -190,20 +189,17 @@ struct uno_Mediate_Mapping : public uno_Mapping ...@@ -190,20 +189,17 @@ struct uno_Mediate_Mapping : public uno_Mapping
uno_Mediate_Mapping( uno_Mediate_Mapping(
const Environment & rFrom_, const Environment & rTo_, const Environment & rFrom_, const Environment & rTo_,
const Mapping & rFrom2Uno_, const Mapping & rUno2To_, const Mapping & rFrom2Uno_, const Mapping & rUno2To_,
const OUString & rAddPurpose ) const OUString & rAddPurpose );
SAL_THROW(());
}; };
extern "C" extern "C"
{ {
static void SAL_CALL mediate_free( uno_Mapping * pMapping ) static void SAL_CALL mediate_free( uno_Mapping * pMapping )
SAL_THROW(())
{ {
delete static_cast< uno_Mediate_Mapping * >( pMapping ); delete static_cast< uno_Mediate_Mapping * >( pMapping );
} }
static void SAL_CALL mediate_acquire( uno_Mapping * pMapping ) static void SAL_CALL mediate_acquire( uno_Mapping * pMapping )
SAL_THROW(())
{ {
if (1 == osl_atomic_increment( if (1 == osl_atomic_increment(
& static_cast< uno_Mediate_Mapping * >( pMapping )->nRef )) & static_cast< uno_Mediate_Mapping * >( pMapping )->nRef ))
...@@ -217,7 +213,6 @@ static void SAL_CALL mediate_acquire( uno_Mapping * pMapping ) ...@@ -217,7 +213,6 @@ static void SAL_CALL mediate_acquire( uno_Mapping * pMapping )
} }
static void SAL_CALL mediate_release( uno_Mapping * pMapping ) static void SAL_CALL mediate_release( uno_Mapping * pMapping )
SAL_THROW(())
{ {
if (! osl_atomic_decrement( if (! osl_atomic_decrement(
& static_cast< uno_Mediate_Mapping * >( pMapping )->nRef )) & static_cast< uno_Mediate_Mapping * >( pMapping )->nRef ))
...@@ -230,7 +225,6 @@ static void SAL_CALL mediate_mapInterface( ...@@ -230,7 +225,6 @@ static void SAL_CALL mediate_mapInterface(
uno_Mapping * pMapping, uno_Mapping * pMapping,
void ** ppOut, void * pInterface, void ** ppOut, void * pInterface,
typelib_InterfaceTypeDescription * pInterfaceTypeDescr ) typelib_InterfaceTypeDescription * pInterfaceTypeDescr )
SAL_THROW(())
{ {
OSL_ENSURE( pMapping && ppOut, "### null ptr!" ); OSL_ENSURE( pMapping && ppOut, "### null ptr!" );
if (pMapping && ppOut) if (pMapping && ppOut)
...@@ -266,7 +260,6 @@ uno_Mediate_Mapping::uno_Mediate_Mapping( ...@@ -266,7 +260,6 @@ uno_Mediate_Mapping::uno_Mediate_Mapping(
const Environment & rFrom_, const Environment & rTo_, const Environment & rFrom_, const Environment & rTo_,
const Mapping & rFrom2Uno_, const Mapping & rUno2To_, const Mapping & rFrom2Uno_, const Mapping & rUno2To_,
const OUString & rAddPurpose_ ) const OUString & rAddPurpose_ )
SAL_THROW(())
: nRef( 1 ) : nRef( 1 )
, aFrom( rFrom_ ) , aFrom( rFrom_ )
, aTo( rTo_ ) , aTo( rTo_ )
...@@ -282,7 +275,6 @@ uno_Mediate_Mapping::uno_Mediate_Mapping( ...@@ -282,7 +275,6 @@ uno_Mediate_Mapping::uno_Mediate_Mapping(
static inline OUString getMappingName( static inline OUString getMappingName(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose ) const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose )
SAL_THROW(())
{ {
OUStringBuffer aKey( 64 ); OUStringBuffer aKey( 64 );
aKey.append( rAddPurpose ); aKey.append( rAddPurpose );
...@@ -300,7 +292,6 @@ static inline OUString getMappingName( ...@@ -300,7 +292,6 @@ static inline OUString getMappingName(
static inline OUString getBridgeName( static inline OUString getBridgeName(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose ) const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose )
SAL_THROW(())
{ {
OUStringBuffer aBridgeName( 16 ); OUStringBuffer aBridgeName( 16 );
if (!rAddPurpose.isEmpty()) if (!rAddPurpose.isEmpty())
...@@ -317,7 +308,6 @@ static inline OUString getBridgeName( ...@@ -317,7 +308,6 @@ static inline OUString getBridgeName(
#ifndef DISABLE_DYNLOADING #ifndef DISABLE_DYNLOADING
static inline void setNegativeBridge( const OUString & rBridgeName ) static inline void setNegativeBridge( const OUString & rBridgeName )
SAL_THROW(())
{ {
MappingsData & rData = getMappingsData(); MappingsData & rData = getMappingsData();
MutexGuard aGuard( rData.aNegativeLibsMutex ); MutexGuard aGuard( rData.aNegativeLibsMutex );
...@@ -329,7 +319,6 @@ static inline void setNegativeBridge( const OUString & rBridgeName ) ...@@ -329,7 +319,6 @@ static inline void setNegativeBridge( const OUString & rBridgeName )
#ifdef DISABLE_DYNLOADING #ifdef DISABLE_DYNLOADING
static uno_ext_getMappingFunc selectMapFunc( const OUString & rBridgeName ) static uno_ext_getMappingFunc selectMapFunc( const OUString & rBridgeName )
SAL_THROW(())
{ {
if (rBridgeName.equalsAscii( CPPU_CURRENT_LANGUAGE_BINDING_NAME "_uno" )) if (rBridgeName.equalsAscii( CPPU_CURRENT_LANGUAGE_BINDING_NAME "_uno" ))
return CPPU_ENV_uno_ext_getMapping; return CPPU_ENV_uno_ext_getMapping;
...@@ -354,7 +343,6 @@ static uno_ext_getMappingFunc selectMapFunc( const OUString & rBridgeName ) ...@@ -354,7 +343,6 @@ static uno_ext_getMappingFunc selectMapFunc( const OUString & rBridgeName )
#else #else
static inline oslModule loadModule( const OUString & rBridgeName ) static inline oslModule loadModule( const OUString & rBridgeName )
SAL_THROW(())
{ {
bool bNeg; bool bNeg;
{ {
...@@ -381,7 +369,6 @@ static inline oslModule loadModule( const OUString & rBridgeName ) ...@@ -381,7 +369,6 @@ static inline oslModule loadModule( const OUString & rBridgeName )
static Mapping loadExternalMapping( static Mapping loadExternalMapping(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose ) const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose )
SAL_THROW(())
{ {
OSL_ASSERT( rFrom.is() && rTo.is() ); OSL_ASSERT( rFrom.is() && rTo.is() );
if (rFrom.is() && rTo.is()) if (rFrom.is() && rTo.is())
...@@ -462,7 +449,7 @@ static Mapping loadExternalMapping( ...@@ -462,7 +449,7 @@ static Mapping loadExternalMapping(
static Mapping getDirectMapping( static Mapping getDirectMapping(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose = OUString() ) const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose = OUString() )
SAL_THROW(())
{ {
OSL_ASSERT( rFrom.is() && rTo.is() ); OSL_ASSERT( rFrom.is() && rTo.is() );
if (rFrom.is() && rTo.is()) if (rFrom.is() && rTo.is())
...@@ -492,7 +479,6 @@ static inline Mapping createMediateMapping( ...@@ -492,7 +479,6 @@ static inline Mapping createMediateMapping(
const Environment & rFrom, const Environment & rTo, const Environment & rFrom, const Environment & rTo,
const Mapping & rFrom2Uno, const Mapping & rUno2To, const Mapping & rFrom2Uno, const Mapping & rUno2To,
const OUString & rAddPurpose ) const OUString & rAddPurpose )
SAL_THROW(())
{ {
uno_Mapping * pRet = new uno_Mediate_Mapping( uno_Mapping * pRet = new uno_Mediate_Mapping(
rFrom, rTo, rFrom2Uno, rUno2To, rAddPurpose ); // ref count initially 1 rFrom, rTo, rFrom2Uno, rUno2To, rAddPurpose ); // ref count initially 1
...@@ -505,7 +491,6 @@ static inline Mapping createMediateMapping( ...@@ -505,7 +491,6 @@ static inline Mapping createMediateMapping(
static Mapping getMediateMapping( static Mapping getMediateMapping(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose ) const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose )
SAL_THROW(())
{ {
Environment aUno; Environment aUno;
Mapping aUno2To; Mapping aUno2To;
......
...@@ -49,7 +49,7 @@ inline void * _map( ...@@ -49,7 +49,7 @@ inline void * _map(
void * p, void * p,
typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr, typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr,
uno_Mapping * mapping ) uno_Mapping * mapping )
SAL_THROW(())
{ {
void * pRet = 0; void * pRet = 0;
if (p) if (p)
...@@ -70,7 +70,7 @@ inline void * _map( ...@@ -70,7 +70,7 @@ inline void * _map(
return pRet; return pRet;
} }
inline void _acquire( void * p, uno_AcquireFunc acquire ) SAL_THROW(()) inline void _acquire( void * p, uno_AcquireFunc acquire )
{ {
if (p) if (p)
{ {
...@@ -85,7 +85,7 @@ inline void _acquire( void * p, uno_AcquireFunc acquire ) SAL_THROW(()) ...@@ -85,7 +85,7 @@ inline void _acquire( void * p, uno_AcquireFunc acquire ) SAL_THROW(())
} }
} }
inline void _release( void * p, uno_ReleaseFunc release ) SAL_THROW(()) inline void _release( void * p, uno_ReleaseFunc release )
{ {
if (p) if (p)
{ {
...@@ -114,14 +114,13 @@ inline sal_uInt32 calcSeqMemSize( ...@@ -114,14 +114,13 @@ inline sal_uInt32 calcSeqMemSize(
} }
inline uno_Sequence * createEmptySequence() SAL_THROW(()) inline uno_Sequence * createEmptySequence()
{ {
osl_atomic_increment( &g_emptySeq.nRefCount ); osl_atomic_increment( &g_emptySeq.nRefCount );
return &g_emptySeq; return &g_emptySeq;
} }
inline typelib_TypeDescriptionReference * _getVoidType() inline typelib_TypeDescriptionReference * _getVoidType()
SAL_THROW(())
{ {
if (! g_pVoidType) if (! g_pVoidType)
{ {
...@@ -153,7 +152,7 @@ extern "C" void * binuno_queryInterface( ...@@ -153,7 +152,7 @@ extern "C" void * binuno_queryInterface(
inline bool _type_equals( inline bool _type_equals(
typelib_TypeDescriptionReference * pType1, typelib_TypeDescriptionReference * pType2 ) typelib_TypeDescriptionReference * pType1, typelib_TypeDescriptionReference * pType2 )
SAL_THROW(())
{ {
return (pType1 == pType2 || return (pType1 == pType2 ||
(pType1->eTypeClass == pType2->eTypeClass && (pType1->eTypeClass == pType2->eTypeClass &&
......
...@@ -59,7 +59,7 @@ namespace cppu ...@@ -59,7 +59,7 @@ namespace cppu
@return 0 == empty, 1 == non empty @return 0 == empty, 1 == non empty
*/ */
bool SAL_CALL is() const SAL_THROW(()) bool SAL_CALL is() const
{ {
return m_env.is(); return m_env.is();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment