summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-05 08:13:49 +0200
committerNoel Grandin <noel@peralex.com>2014-06-05 08:17:49 +0200
commit41e35159786a2bcad416e3541ba90a69b9d2f0db (patch)
tree4c4e232aed4240dcb891a362981fceaf819f50a2 /cppu
parentbf37694ab8c984e3cbbe666c408e0f168ba61f52 (diff)
cppu: remove SAL_THROW macro
Change-Id: I2f1909f953846f0d0b6fb402b4beb373bba8b2a8
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/helper/purpenv/Proxy.hxx3
-rw-r--r--cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx8
-rw-r--r--cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx2
-rw-r--r--cppu/source/threadpool/current.cxx14
-rw-r--r--cppu/source/threadpool/current.hxx2
-rw-r--r--cppu/source/typelib/static_types.cxx3
-rw-r--r--cppu/source/typelib/typelib.cxx22
-rw-r--r--cppu/source/uno/IdentityMapping.cxx9
-rw-r--r--cppu/source/uno/assign.hxx8
-rw-r--r--cppu/source/uno/constr.hxx5
-rw-r--r--cppu/source/uno/copy.hxx7
-rw-r--r--cppu/source/uno/data.cxx6
-rw-r--r--cppu/source/uno/destr.hxx7
-rw-r--r--cppu/source/uno/eq.hxx10
-rw-r--r--cppu/source/uno/lbmap.cxx47
-rw-r--r--cppu/source/uno/prim.hxx11
16 files changed, 52 insertions, 112 deletions
diff --git a/cppu/source/helper/purpenv/Proxy.hxx b/cppu/source/helper/purpenv/Proxy.hxx
index 68ff3faf6797..4791d7d6d67e 100644
--- a/cppu/source/helper/purpenv/Proxy.hxx
+++ b/cppu/source/helper/purpenv/Proxy.hxx
@@ -58,8 +58,7 @@ public:
typelib_InterfaceTypeDescription * pTypeDescr,
rtl::OUString const & rOId,
cppu::helper::purpenv::ProbeFun * probeFun,
- void * pProbeContext)
- SAL_THROW(());
+ void * pProbeContext);
~Proxy(void);
void acquire(void);
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx b/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx
index 074b8a1efcae..9375dd7fdfb0 100644
--- a/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx
+++ b/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx
@@ -119,14 +119,14 @@ Mapping::Mapping(uno_Environment * pFrom,
uno_Environment * pTo,
cppu::helper::purpenv::ProbeFun * probeFun,
void * pProbeContext
-) SAL_THROW(())
+)
: m_from (pFrom),
m_to (pTo),
m_nCount (1),
m_probeFun(probeFun),
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::release = s_release;
@@ -189,7 +189,7 @@ void Mapping::mapInterface(
}
-void Mapping::acquire() SAL_THROW(())
+void Mapping::acquire()
{
if (osl_atomic_increment(&m_nCount) == 1)
{
@@ -199,7 +199,7 @@ void Mapping::acquire() SAL_THROW(())
}
}
-void Mapping::release() SAL_THROW(())
+void Mapping::release()
{
if (osl_atomic_decrement(&m_nCount) == 0)
::uno_revokeMapping(this);
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
index b02439eb6f21..d8e0dd40f98e 100644
--- a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
+++ b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
@@ -41,7 +41,6 @@ using namespace com::sun::star;
static bool relatesToInterface(typelib_TypeDescription * pTypeDescr)
- SAL_THROW(())
{
switch (pTypeDescr->eTypeClass)
{
@@ -211,7 +210,6 @@ Proxy::Proxy(uno::Mapping const & to_from,
cppu::helper::purpenv::ProbeFun * probeFun,
void * pProbeContext
)
- SAL_THROW(())
: m_nRef (1),
m_from (pFrom),
m_to (pTo),
diff --git a/cppu/source/threadpool/current.cxx b/cppu/source/threadpool/current.cxx
index 9e51c6db4282..a173140da212 100644
--- a/cppu/source/threadpool/current.cxx
+++ b/cppu/source/threadpool/current.cxx
@@ -103,20 +103,20 @@ class ThreadKey
oslThreadKeyCallbackFunction _pCallback;
public:
- inline oslThreadKey getThreadKey() SAL_THROW(());
+ inline oslThreadKey getThreadKey();
- inline ThreadKey( oslThreadKeyCallbackFunction pCallback ) SAL_THROW(());
- inline ~ThreadKey() SAL_THROW(());
+ inline ThreadKey( oslThreadKeyCallbackFunction pCallback );
+ inline ~ThreadKey();
};
-inline ThreadKey::ThreadKey( oslThreadKeyCallbackFunction pCallback ) SAL_THROW(())
+inline ThreadKey::ThreadKey( oslThreadKeyCallbackFunction pCallback )
: _bInit( false )
, _hThreadKey( 0 )
, _pCallback( pCallback )
{
}
-inline ThreadKey::~ThreadKey() SAL_THROW(())
+inline ThreadKey::~ThreadKey()
{
if (_bInit)
{
@@ -124,7 +124,7 @@ inline ThreadKey::~ThreadKey() SAL_THROW(())
}
}
-inline oslThreadKey ThreadKey::getThreadKey() SAL_THROW(())
+inline oslThreadKey ThreadKey::getThreadKey()
{
if (! _bInit)
{
@@ -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 );
oslThreadKey aKey = s_key.getThreadKey();
diff --git a/cppu/source/threadpool/current.hxx b/cppu/source/threadpool/current.hxx
index 6751bc6c0de2..d69d1eade5e3 100644
--- a/cppu/source/threadpool/current.hxx
+++ b/cppu/source/threadpool/current.hxx
@@ -39,7 +39,7 @@ struct IdContainer
sal_Sequence * pCurrentId;
};
-IdContainer * getIdContainer() SAL_THROW(());
+IdContainer * getIdContainer();
}
#endif
diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx
index 0e456661ce94..537eff83f835 100644
--- a/cppu/source/typelib/static_types.cxx
+++ b/cppu/source/typelib/static_types.cxx
@@ -89,7 +89,6 @@ struct AlignSize_Impl
static sal_Int32 nMaxAlignment = (sal_Int32)( (sal_Size)(&((AlignSize_Impl *) 16)->dDouble) - 16);
static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
- SAL_THROW(())
{
if( nRequestedAlignment > nMaxAlignment )
nRequestedAlignment = nMaxAlignment;
@@ -101,7 +100,6 @@ static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
*/
static inline sal_Int32 newAlignedSize(
sal_Int32 OldSize, sal_Int32 ElementSize, sal_Int32 NeededAlignment )
- SAL_THROW(())
{
NeededAlignment = adjustAlignment( NeededAlignment );
return (OldSize + NeededAlignment -1) / NeededAlignment * NeededAlignment + ElementSize;
@@ -116,7 +114,6 @@ namespace
// !for NOT REALLY WEAK TYPES only!
static inline typelib_TypeDescriptionReference * igetTypeByName( rtl_uString * pTypeName )
- SAL_THROW(())
{
typelib_TypeDescriptionReference * pRef = 0;
::typelib_typedescriptionreference_getByName( &pRef, pTypeName );
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index fa58257a1149..583b73733f9a 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -81,7 +81,6 @@ struct AlignSize_Impl
static sal_Int32 nMaxAlignment = (sal_Int32)( (sal_Size)(&((AlignSize_Impl *) 16)->dDouble) - 16);
static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
- SAL_THROW(())
{
if( nRequestedAlignment > nMaxAlignment )
nRequestedAlignment = nMaxAlignment;
@@ -93,20 +92,17 @@ static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment )
*/
static inline sal_Int32 newAlignedSize(
sal_Int32 OldSize, sal_Int32 ElementSize, sal_Int32 NeededAlignment )
- SAL_THROW(())
{
NeededAlignment = adjustAlignment( NeededAlignment );
return (OldSize + NeededAlignment -1) / NeededAlignment * NeededAlignment + ElementSize;
}
static inline bool reallyWeak( typelib_TypeClass eTypeClass )
- SAL_THROW(())
{
return TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK( eTypeClass );
}
static inline sal_Int32 getDescriptionSize( typelib_TypeClass eTypeClass )
- SAL_THROW(())
{
OSL_ASSERT( typelib_TypeClass_TYPEDEF != eTypeClass );
@@ -159,14 +155,14 @@ extern "C" void SAL_CALL typelib_typedescriptionreference_getByName(
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 ); }
};
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 ); }
};
@@ -195,9 +191,9 @@ struct TypeDescriptor_Init_Impl
// The mutex to guard all type library accesses
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
// only for debugging
@@ -223,10 +219,10 @@ struct TypeDescriptor_Init_Impl
#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 )
{
@@ -239,7 +235,6 @@ inline Mutex & TypeDescriptor_Init_Impl::getMutex() SAL_THROW(())
inline void TypeDescriptor_Init_Impl::callChain(
typelib_TypeDescription ** ppRet, rtl_uString * pName )
- SAL_THROW(())
{
assert(ppRet != 0);
assert(*ppRet == 0);
@@ -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 )
{
@@ -394,7 +389,6 @@ extern "C" sal_Int32 SAL_CALL typelib_typedescription_getAlignedUnoSize(
static inline void typelib_typedescription_initTables(
typelib_TypeDescription * pTD )
- SAL_THROW(())
{
typelib_InterfaceTypeDescription * pITD = (typelib_InterfaceTypeDescription *)pTD;
@@ -1307,7 +1301,6 @@ void deleteExceptions(
// frees anything except typelib_TypeDescription base!
static inline void typelib_typedescription_destructExtendedMembers(
typelib_TypeDescription * pTD )
- SAL_THROW(())
{
OSL_ASSERT( typelib_TypeClass_TYPEDEF != pTD->eTypeClass );
@@ -1619,7 +1612,6 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_register(
static inline bool type_equals(
typelib_TypeDescriptionReference * p1, typelib_TypeDescriptionReference * p2 )
- SAL_THROW(())
{
return (p1 == p2 ||
(p1->eTypeClass == p2->eTypeClass &&
diff --git a/cppu/source/uno/IdentityMapping.cxx b/cppu/source/uno/IdentityMapping.cxx
index bf59a8534959..fce98bdf5966 100644
--- a/cppu/source/uno/IdentityMapping.cxx
+++ b/cppu/source/uno/IdentityMapping.cxx
@@ -38,12 +38,12 @@ struct IdentityMapping : public uno_Mapping
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);
}
-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;
@@ -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))
uno_revokeMapping(pMapping);
@@ -68,7 +68,6 @@ static void SAL_CALL s_mapInterface(uno_Mapping * pMapping
void ** ppOut,
void * pInterface,
SAL_UNUSED_PARAMETER struct _typelib_InterfaceTypeDescription * /*pInterfaceTypeDescr*/)
- SAL_THROW(())
{
*ppOut = pInterface;
@@ -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);
}
diff --git a/cppu/source/uno/assign.hxx b/cppu/source/uno/assign.hxx
index 05c0d4a56021..28a4917b46b1 100644
--- a/cppu/source/uno/assign.hxx
+++ b/cppu/source/uno/assign.hxx
@@ -39,7 +39,7 @@ namespace cppu
inline void _assignInterface(
void ** ppDest, void * pSource,
uno_AcquireFunc acquire, uno_ReleaseFunc release )
- SAL_THROW(())
+
{
_acquire( pSource, acquire );
void * const pToBeReleased = *ppDest;
@@ -51,7 +51,6 @@ inline void * _queryInterface(
void * pSource,
typelib_TypeDescriptionReference * pDestType,
uno_QueryInterfaceFunc queryInterface )
- SAL_THROW(())
{
if (pSource)
{
@@ -65,14 +64,12 @@ inline void * _queryInterface(
bool assignStruct(
void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr,
- uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
- SAL_THROW(());
+ uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release );
inline bool _assignStruct(
void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
- SAL_THROW(())
{
if (pTypeDescr->pBaseTypeDescription)
{
@@ -107,7 +104,6 @@ inline bool _assignData(
void * pSource,
typelib_TypeDescriptionReference * pSourceType, typelib_TypeDescription * pSourceTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
- SAL_THROW(())
{
if (pDest == pSource)
return _type_equals( pDestType, pSourceType );
diff --git a/cppu/source/uno/constr.hxx b/cppu/source/uno/constr.hxx
index 25859330f823..a174b805f749 100644
--- a/cppu/source/uno/constr.hxx
+++ b/cppu/source/uno/constr.hxx
@@ -32,13 +32,11 @@ namespace cppu
void defaultConstructStruct(
void * pMem,
- typelib_CompoundTypeDescription * pCompType )
- SAL_THROW(());
+ typelib_CompoundTypeDescription * pCompType );
inline void _defaultConstructStruct(
void * pMem,
typelib_CompoundTypeDescription * pTypeDescr )
- SAL_THROW(())
{
if (pTypeDescr->pBaseTypeDescription)
{
@@ -60,7 +58,6 @@ inline void _defaultConstructData(
void * pMem,
typelib_TypeDescriptionReference * pType,
typelib_TypeDescription * pTypeDescr )
- SAL_THROW(())
{
switch (pType->eTypeClass)
{
diff --git a/cppu/source/uno/copy.hxx b/cppu/source/uno/copy.hxx
index 1113a7e9e157..55a23c14a5b3 100644
--- a/cppu/source/uno/copy.hxx
+++ b/cppu/source/uno/copy.hxx
@@ -54,14 +54,12 @@ inline uno_Sequence * allocSeq(
void copyConstructStruct(
void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr,
- uno_AcquireFunc acquire, uno_Mapping * mapping )
- SAL_THROW (());
+ uno_AcquireFunc acquire, uno_Mapping * mapping );
inline void _copyConstructStruct(
void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping )
- SAL_THROW (())
{
if (pTypeDescr->pBaseTypeDescription)
{
@@ -107,7 +105,6 @@ inline void _copyConstructAnyFromData(
uno_Any * pDestAny, void * pSource,
typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping )
- SAL_THROW (())
{
TYPE_ACQUIRE( pType );
pDestAny->pType = pType;
@@ -237,7 +234,6 @@ inline void _copyConstructAny(
uno_Any * pDestAny, void * pSource,
typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping )
- SAL_THROW (())
{
if (typelib_TypeClass_VOID == pType->eTypeClass)
{
@@ -521,7 +517,6 @@ inline void _copyConstructData(
void * pDest, void * pSource,
typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping )
- SAL_THROW (())
{
switch (pType->eTypeClass)
{
diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx
index aef183cab9ed..3ef7acf9df59 100644
--- a/cppu/source/uno/data.cxx
+++ b/cppu/source/uno/data.cxx
@@ -117,7 +117,6 @@ void * binuno_queryInterface( void * pUnoI, typelib_TypeDescriptionReference * p
void defaultConstructStruct(
void * pMem,
typelib_CompoundTypeDescription * pCompType )
- SAL_THROW(())
{
_defaultConstructStruct( pMem, pCompType );
}
@@ -126,7 +125,6 @@ void copyConstructStruct(
void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr,
uno_AcquireFunc acquire, uno_Mapping * mapping )
- SAL_THROW(())
{
_copyConstructStruct( pDest, pSource, pTypeDescr, acquire, mapping );
}
@@ -135,7 +133,6 @@ void destructStruct(
void * pValue,
typelib_CompoundTypeDescription * pTypeDescr,
uno_ReleaseFunc release )
- SAL_THROW(())
{
_destructStruct( pValue, pTypeDescr, release );
}
@@ -144,7 +141,6 @@ bool equalStruct(
void * pDest, void *pSource,
typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
- SAL_THROW(())
{
return _equalStruct( pDest, pSource, pTypeDescr, queryInterface, release );
}
@@ -153,7 +149,6 @@ bool assignStruct(
void * pDest, void * pSource,
typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_AcquireFunc acquire, uno_ReleaseFunc release )
- SAL_THROW(())
{
return _assignStruct( pDest, pSource, pTypeDescr, queryInterface, acquire, release );
}
@@ -182,7 +177,6 @@ bool equalSequence(
uno_Sequence * pDest, uno_Sequence * pSource,
typelib_TypeDescriptionReference * pElementType,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
- SAL_THROW(())
{
return _equalSequence( pDest, pSource, pElementType, queryInterface, release );
}
diff --git a/cppu/source/uno/destr.hxx b/cppu/source/uno/destr.hxx
index 677f129ae550..46a71c27a9f7 100644
--- a/cppu/source/uno/destr.hxx
+++ b/cppu/source/uno/destr.hxx
@@ -33,14 +33,12 @@ namespace cppu
void destructStruct(
void * pValue,
typelib_CompoundTypeDescription * pTypeDescr,
- uno_ReleaseFunc release )
- SAL_THROW(());
+ uno_ReleaseFunc release );
inline void _destructStruct(
void * pValue,
typelib_CompoundTypeDescription * pTypeDescr,
uno_ReleaseFunc release )
- SAL_THROW(())
{
if (pTypeDescr->pBaseTypeDescription)
{
@@ -69,7 +67,6 @@ void destructSequence(
inline void _destructAny(
uno_Any * pAny,
uno_ReleaseFunc release )
- SAL_THROW(())
{
typelib_TypeDescriptionReference * pType = pAny->pType;
@@ -142,7 +139,6 @@ inline sal_Int32 idestructElements(
void * pElements, typelib_TypeDescriptionReference * pElementType,
sal_Int32 nStartIndex, sal_Int32 nStopIndex,
uno_ReleaseFunc release )
- SAL_THROW(())
{
switch (pElementType->eTypeClass)
{
@@ -297,7 +293,6 @@ inline void _destructData(
typelib_TypeDescriptionReference * pType,
typelib_TypeDescription * pTypeDescr,
uno_ReleaseFunc release )
- SAL_THROW(())
{
switch (pType->eTypeClass)
{
diff --git a/cppu/source/uno/eq.hxx b/cppu/source/uno/eq.hxx
index 679fb3ddab82..dc064bef28b6 100644
--- a/cppu/source/uno/eq.hxx
+++ b/cppu/source/uno/eq.hxx
@@ -36,7 +36,6 @@ namespace cppu
inline bool _equalObject(
void * pI1, void * pI2,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
- SAL_THROW(())
{
if (pI1 == pI2)
return true;
@@ -66,14 +65,12 @@ inline bool _equalObject(
bool equalStruct(
void * pDest, void *pSource,
typelib_CompoundTypeDescription * pTypeDescr,
- uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
- SAL_THROW(());
+ uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release );
inline bool _equalStruct(
void * pDest, void *pSource,
typelib_CompoundTypeDescription * pTypeDescr,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
- SAL_THROW(())
{
if (pTypeDescr->pBaseTypeDescription &&
!equalStruct( pDest, pSource, pTypeDescr->pBaseTypeDescription, queryInterface, release ))
@@ -103,14 +100,12 @@ inline bool _equalStruct(
bool equalSequence(
uno_Sequence * pDest, uno_Sequence * pSource,
typelib_TypeDescriptionReference * pElementType,
- uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
- SAL_THROW(());
+ uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release );
inline bool _equalSequence(
uno_Sequence * pDest, uno_Sequence * pSource,
typelib_TypeDescriptionReference * pElementType,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
- SAL_THROW(())
{
if (pDest == pSource)
return true;
@@ -269,7 +264,6 @@ inline bool _equalData(
void * pSource,
typelib_TypeDescriptionReference * pSourceType,
uno_QueryInterfaceFunc queryInterface, uno_ReleaseFunc release )
- SAL_THROW(())
{
typelib_TypeClass eSourceTypeClass, eDestTypeClass;
while (typelib_TypeClass_ANY == (eDestTypeClass = pDestType->eTypeClass))
diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx
index 46c1a6b21fa7..43c5d4af6e6f 100644
--- a/cppu/source/uno/lbmap.cxx
+++ b/cppu/source/uno/lbmap.cxx
@@ -60,39 +60,39 @@ class Mapping
uno_Mapping * _pMapping;
public:
- inline explicit Mapping( uno_Mapping * pMapping = 0 ) SAL_THROW(());
- inline Mapping( const Mapping & rMapping ) SAL_THROW(());
- inline ~Mapping() SAL_THROW(());
- inline Mapping & SAL_CALL operator = ( uno_Mapping * pMapping ) SAL_THROW(());
- inline Mapping & SAL_CALL operator = ( const Mapping & rMapping ) SAL_THROW(())
+ inline explicit Mapping( uno_Mapping * pMapping = 0 );
+ inline Mapping( const Mapping & rMapping );
+ inline ~Mapping();
+ inline Mapping & SAL_CALL operator = ( uno_Mapping * pMapping );
+ inline Mapping & SAL_CALL operator = ( const Mapping & rMapping )
{ return operator = ( rMapping._pMapping ); }
- inline uno_Mapping * SAL_CALL get() const SAL_THROW(())
+ inline uno_Mapping * SAL_CALL get() const
{ return _pMapping; }
- inline bool SAL_CALL is() const SAL_THROW(())
+ inline bool SAL_CALL is() const
{ return (_pMapping != 0); }
};
-inline Mapping::Mapping( uno_Mapping * pMapping ) SAL_THROW(())
+inline Mapping::Mapping( uno_Mapping * pMapping )
: _pMapping( pMapping )
{
if (_pMapping)
(*_pMapping->acquire)( _pMapping );
}
-inline Mapping::Mapping( const Mapping & rMapping ) SAL_THROW(())
+inline Mapping::Mapping( const Mapping & rMapping )
: _pMapping( rMapping._pMapping )
{
if (_pMapping)
(*_pMapping->acquire)( _pMapping );
}
-inline Mapping::~Mapping() SAL_THROW(())
+inline Mapping::~Mapping()
{
if (_pMapping)
(*_pMapping->release)( _pMapping );
}
-inline Mapping & Mapping::operator = ( uno_Mapping * pMapping ) SAL_THROW(())
+inline Mapping & Mapping::operator = ( uno_Mapping * pMapping )
{
if (pMapping)
(*pMapping->acquire)( pMapping );
@@ -113,7 +113,6 @@ struct MappingEntry
MappingEntry(
uno_Mapping * pMapping_, uno_freeMappingFunc freeMapping_,
const OUString & rMappingName_ )
- SAL_THROW(())
: nRef( 1 )
, pMapping( pMapping_ )
, freeMapping( freeMapping_ )
@@ -123,13 +122,13 @@ struct MappingEntry
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(); }
};
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; }
};
@@ -155,7 +154,7 @@ struct MappingsData
t_OUStringSet aNegativeLibs;
};
-static MappingsData & getMappingsData() SAL_THROW(())
+static MappingsData & getMappingsData()
{
static MappingsData * s_p = 0;
if (! s_p)
@@ -190,20 +189,17 @@ struct uno_Mediate_Mapping : public uno_Mapping
uno_Mediate_Mapping(
const Environment & rFrom_, const Environment & rTo_,
const Mapping & rFrom2Uno_, const Mapping & rUno2To_,
- const OUString & rAddPurpose )
- SAL_THROW(());
+ const OUString & rAddPurpose );
};
extern "C"
{
static void SAL_CALL mediate_free( uno_Mapping * pMapping )
- SAL_THROW(())
{
delete static_cast< uno_Mediate_Mapping * >( pMapping );
}
static void SAL_CALL mediate_acquire( uno_Mapping * pMapping )
- SAL_THROW(())
{
if (1 == osl_atomic_increment(
& static_cast< uno_Mediate_Mapping * >( pMapping )->nRef ))
@@ -217,7 +213,6 @@ static void SAL_CALL mediate_acquire( uno_Mapping * pMapping )
}
static void SAL_CALL mediate_release( uno_Mapping * pMapping )
- SAL_THROW(())
{
if (! osl_atomic_decrement(
& static_cast< uno_Mediate_Mapping * >( pMapping )->nRef ))
@@ -230,7 +225,6 @@ static void SAL_CALL mediate_mapInterface(
uno_Mapping * pMapping,
void ** ppOut, void * pInterface,
typelib_InterfaceTypeDescription * pInterfaceTypeDescr )
- SAL_THROW(())
{
OSL_ENSURE( pMapping && ppOut, "### null ptr!" );
if (pMapping && ppOut)
@@ -266,7 +260,6 @@ uno_Mediate_Mapping::uno_Mediate_Mapping(
const Environment & rFrom_, const Environment & rTo_,
const Mapping & rFrom2Uno_, const Mapping & rUno2To_,
const OUString & rAddPurpose_ )
- SAL_THROW(())
: nRef( 1 )
, aFrom( rFrom_ )
, aTo( rTo_ )
@@ -282,7 +275,6 @@ uno_Mediate_Mapping::uno_Mediate_Mapping(
static inline OUString getMappingName(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose )
- SAL_THROW(())
{
OUStringBuffer aKey( 64 );
aKey.append( rAddPurpose );
@@ -300,7 +292,6 @@ static inline OUString getMappingName(
static inline OUString getBridgeName(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose )
- SAL_THROW(())
{
OUStringBuffer aBridgeName( 16 );
if (!rAddPurpose.isEmpty())
@@ -317,7 +308,6 @@ static inline OUString getBridgeName(
#ifndef DISABLE_DYNLOADING
static inline void setNegativeBridge( const OUString & rBridgeName )
- SAL_THROW(())
{
MappingsData & rData = getMappingsData();
MutexGuard aGuard( rData.aNegativeLibsMutex );
@@ -329,7 +319,6 @@ static inline void setNegativeBridge( const OUString & rBridgeName )
#ifdef DISABLE_DYNLOADING
static uno_ext_getMappingFunc selectMapFunc( const OUString & rBridgeName )
- SAL_THROW(())
{
if (rBridgeName.equalsAscii( CPPU_CURRENT_LANGUAGE_BINDING_NAME "_uno" ))
return CPPU_ENV_uno_ext_getMapping;
@@ -354,7 +343,6 @@ static uno_ext_getMappingFunc selectMapFunc( const OUString & rBridgeName )
#else
static inline oslModule loadModule( const OUString & rBridgeName )
- SAL_THROW(())
{
bool bNeg;
{
@@ -381,7 +369,6 @@ static inline oslModule loadModule( const OUString & rBridgeName )
static Mapping loadExternalMapping(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose )
- SAL_THROW(())
{
OSL_ASSERT( rFrom.is() && rTo.is() );
if (rFrom.is() && rTo.is())
@@ -462,7 +449,7 @@ static Mapping loadExternalMapping(
static Mapping getDirectMapping(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose = OUString() )
- SAL_THROW(())
+
{
OSL_ASSERT( rFrom.is() && rTo.is() );
if (rFrom.is() && rTo.is())
@@ -492,7 +479,6 @@ static inline Mapping createMediateMapping(
const Environment & rFrom, const Environment & rTo,
const Mapping & rFrom2Uno, const Mapping & rUno2To,
const OUString & rAddPurpose )
- SAL_THROW(())
{
uno_Mapping * pRet = new uno_Mediate_Mapping(
rFrom, rTo, rFrom2Uno, rUno2To, rAddPurpose ); // ref count initially 1
@@ -505,7 +491,6 @@ static inline Mapping createMediateMapping(
static Mapping getMediateMapping(
const Environment & rFrom, const Environment & rTo, const OUString & rAddPurpose )
- SAL_THROW(())
{
Environment aUno;
Mapping aUno2To;
diff --git a/cppu/source/uno/prim.hxx b/cppu/source/uno/prim.hxx
index d9dc6a23220d..265e2cdab2e7 100644
--- a/cppu/source/uno/prim.hxx
+++ b/cppu/source/uno/prim.hxx
@@ -49,7 +49,7 @@ inline void * _map(
void * p,
typelib_TypeDescriptionReference * pType, typelib_TypeDescription * pTypeDescr,
uno_Mapping * mapping )
- SAL_THROW(())
+
{
void * pRet = 0;
if (p)
@@ -70,7 +70,7 @@ inline void * _map(
return pRet;
}
-inline void _acquire( void * p, uno_AcquireFunc acquire ) SAL_THROW(())
+inline void _acquire( void * p, uno_AcquireFunc acquire )
{
if (p)
{
@@ -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)
{
@@ -114,14 +114,13 @@ inline sal_uInt32 calcSeqMemSize(
}
-inline uno_Sequence * createEmptySequence() SAL_THROW(())
+inline uno_Sequence * createEmptySequence()
{
osl_atomic_increment( &g_emptySeq.nRefCount );
return &g_emptySeq;
}
inline typelib_TypeDescriptionReference * _getVoidType()
- SAL_THROW(())
{
if (! g_pVoidType)
{
@@ -153,7 +152,7 @@ extern "C" void * binuno_queryInterface(
inline bool _type_equals(
typelib_TypeDescriptionReference * pType1, typelib_TypeDescriptionReference * pType2 )
- SAL_THROW(())
+
{
return (pType1 == pType2 ||
(pType1->eTypeClass == pType2->eTypeClass &&