summaryrefslogtreecommitdiff
path: root/cppuhelper/source/implbase.cxx
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-03-09 11:15:28 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-03-09 11:15:28 +0000
commit414591811ccbd8120f697bfc8bfd44c3bb1f28ac (patch)
treeb289b2d67ab60e558a780e0d9a7d65947957e6a3 /cppuhelper/source/implbase.cxx
parentfee2a34fc7ce4301dd5335dd7c6072f5696480dd (diff)
revised function throw () clauses, removed obsolete macros.hxx
Diffstat (limited to 'cppuhelper/source/implbase.cxx')
-rw-r--r--cppuhelper/source/implbase.cxx27
1 files changed, 14 insertions, 13 deletions
diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx
index 15df99d0f72a..441dc512dc62 100644
--- a/cppuhelper/source/implbase.cxx
+++ b/cppuhelper/source/implbase.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: implbase.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dbo $ $Date: 2000-10-06 15:15:09 $
+ * last change: $Author: dbo $ $Date: 2001-03-09 12:15:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,7 +80,7 @@ using namespace com::sun::star::lang;
namespace cppu
{
//==================================================================================================
-Mutex & SAL_CALL getImplHelperInitMutex(void)
+Mutex & SAL_CALL getImplHelperInitMutex(void) SAL_THROW( () )
{
static Mutex * s_pMutex = 0;
if (! s_pMutex)
@@ -97,7 +97,7 @@ Mutex & SAL_CALL getImplHelperInitMutex(void)
// ClassDataBase
//__________________________________________________________________________________________________
-ClassDataBase::ClassDataBase()
+ClassDataBase::ClassDataBase() SAL_THROW( () )
: bOffsetsInit( sal_False )
, nType2Offset( 0 )
, nClassCode( 0 )
@@ -106,7 +106,7 @@ ClassDataBase::ClassDataBase()
{
}
//__________________________________________________________________________________________________
-ClassDataBase::ClassDataBase( sal_Int32 nClassCode_ )
+ClassDataBase::ClassDataBase( sal_Int32 nClassCode_ ) SAL_THROW( () )
: bOffsetsInit( sal_False )
, nType2Offset( 0 )
, nClassCode( nClassCode_ )
@@ -115,7 +115,7 @@ ClassDataBase::ClassDataBase( sal_Int32 nClassCode_ )
{
}
//__________________________________________________________________________________________________
-ClassDataBase::~ClassDataBase()
+ClassDataBase::~ClassDataBase() SAL_THROW( () )
{
delete pTypes;
delete pId;
@@ -129,7 +129,7 @@ ClassDataBase::~ClassDataBase()
// ClassData
//__________________________________________________________________________________________________
-void ClassData::writeTypeOffset( const Type & rType, sal_Int32 nOffset )
+void ClassData::writeTypeOffset( const Type & rType, sal_Int32 nOffset ) SAL_THROW( () )
{
arType2Offset[nType2Offset].nOffset = nOffset;
@@ -149,7 +149,7 @@ void ClassData::writeTypeOffset( const Type & rType, sal_Int32 nOffset )
#endif
}
//__________________________________________________________________________________________________
-void ClassData::initTypeProvider()
+void ClassData::initTypeProvider() SAL_THROW( () )
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
if (! pTypes)
@@ -190,14 +190,14 @@ void ClassData::initTypeProvider()
}
}
//__________________________________________________________________________________________________
-Sequence< Type > ClassData::getTypes()
+Sequence< Type > ClassData::getTypes() SAL_THROW( () )
{
if (! pTypes)
initTypeProvider();
return *pTypes;
}
//__________________________________________________________________________________________________
-Sequence< sal_Int8 > ClassData::getImplementationId()
+Sequence< sal_Int8 > ClassData::getImplementationId() SAL_THROW( () )
{
if (! pTypes)
initTypeProvider();
@@ -205,15 +205,16 @@ Sequence< sal_Int8 > ClassData::getImplementationId()
}
//--------------------------------------------------------------------------------------------------
-static inline sal_Bool td_equals( typelib_TypeDescription * pTD,
- typelib_TypeDescriptionReference * pType )
+static inline sal_Bool td_equals(
+ typelib_TypeDescription * pTD, typelib_TypeDescriptionReference * pType )
+ SAL_THROW( () )
{
return (pTD->pWeakRef == pType ||
(pTD->pTypeName->length == pType->pTypeName->length &&
rtl_ustr_compare( pTD->pTypeName->buffer, pType->pTypeName->buffer ) == 0));
}
//__________________________________________________________________________________________________
-Any ClassData::query( const Type & rType, XTypeProvider * pBase )
+Any ClassData::query( const Type & rType, XTypeProvider * pBase ) SAL_THROW( () )
{
if (rType == ::getCppuType( (const Reference< XInterface > *)0 ))
return Any( &pBase, ::getCppuType( (const Reference< XInterface > *)0 ) );