summaryrefslogtreecommitdiff
path: root/stoc/source/corereflection/crenum.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/corereflection/crenum.cxx')
-rw-r--r--stoc/source/corereflection/crenum.cxx33
1 files changed, 10 insertions, 23 deletions
diff --git a/stoc/source/corereflection/crenum.cxx b/stoc/source/corereflection/crenum.cxx
index 594897049fef..b5a4f1ca1fcf 100644
--- a/stoc/source/corereflection/crenum.cxx
+++ b/stoc/source/corereflection/crenum.cxx
@@ -44,30 +44,29 @@ public:
{}
// XInterface
- virtual Any SAL_CALL queryInterface( const Type & rType ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual Any SAL_CALL queryInterface( const Type & rType ) override;
virtual void SAL_CALL acquire() throw() override;
virtual void SAL_CALL release() throw() override;
// XTypeProvider
- virtual Sequence< Type > SAL_CALL getTypes() throw (css::uno::RuntimeException, std::exception) override;
- virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (css::uno::RuntimeException, std::exception) override;
+ virtual Sequence< Type > SAL_CALL getTypes() override;
+ virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
// XIdlMember
- virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getName() throw(css::uno::RuntimeException, std::exception) override;
+ virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() override;
+ virtual OUString SAL_CALL getName() override;
// XIdlField
- virtual Reference< XIdlClass > SAL_CALL getType() throw(css::uno::RuntimeException, std::exception) override;
- virtual FieldAccessMode SAL_CALL getAccessMode() throw(css::uno::RuntimeException, std::exception) override;
- virtual Any SAL_CALL get( const Any & rObj ) throw(css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException, std::exception) override;
+ virtual Reference< XIdlClass > SAL_CALL getType() override;
+ virtual FieldAccessMode SAL_CALL getAccessMode() override;
+ virtual Any SAL_CALL get( const Any & rObj ) override;
+ virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) override;
// XIdlField2: getType, getAccessMode and get are equal to XIdlField
- virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL set( Any & rObj, const Any & rValue ) override;
};
// XInterface
Any IdlEnumFieldImpl::queryInterface( const Type & rType )
- throw(css::uno::RuntimeException, std::exception)
{
Any aRet( ::cppu::queryInterface( rType,
static_cast< XIdlField * >( this ),
@@ -88,7 +87,6 @@ void IdlEnumFieldImpl::release() throw()
// XTypeProvider
Sequence< Type > IdlEnumFieldImpl::getTypes()
- throw (css::uno::RuntimeException, std::exception)
{
static ::cppu::OTypeCollection * s_pTypes = nullptr;
if (! s_pTypes)
@@ -107,7 +105,6 @@ Sequence< Type > IdlEnumFieldImpl::getTypes()
}
Sequence< sal_Int8 > IdlEnumFieldImpl::getImplementationId()
- throw (css::uno::RuntimeException, std::exception)
{
return css::uno::Sequence<sal_Int8>();
}
@@ -115,13 +112,11 @@ Sequence< sal_Int8 > IdlEnumFieldImpl::getImplementationId()
// XIdlMember
Reference< XIdlClass > IdlEnumFieldImpl::getDeclaringClass()
- throw(css::uno::RuntimeException, std::exception)
{
return IdlMemberImpl::getDeclaringClass();
}
OUString IdlEnumFieldImpl::getName()
- throw(css::uno::RuntimeException, std::exception)
{
return IdlMemberImpl::getName();
}
@@ -129,25 +124,21 @@ OUString IdlEnumFieldImpl::getName()
// XIdlField
Reference< XIdlClass > IdlEnumFieldImpl::getType()
- throw(css::uno::RuntimeException, std::exception)
{
return getDeclaringClass();
}
FieldAccessMode IdlEnumFieldImpl::getAccessMode()
- throw(css::uno::RuntimeException, std::exception)
{
return FieldAccessMode_READONLY;
}
Any IdlEnumFieldImpl::get( const Any & )
- throw(css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
{
return Any( &_nValue, getTypeDescr() );
}
void IdlEnumFieldImpl::set( const Any &, const Any & )
- throw(css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException, std::exception)
{
throw IllegalAccessException(
"enum field is constant!",
@@ -155,7 +146,6 @@ void IdlEnumFieldImpl::set( const Any &, const Any & )
}
void IdlEnumFieldImpl::set( Any &, const Any & )
- throw(css::lang::IllegalArgumentException, css::lang::IllegalAccessException, css::uno::RuntimeException, std::exception)
{
throw IllegalAccessException(
"enum field is constant!",
@@ -170,7 +160,6 @@ EnumIdlClassImpl::~EnumIdlClassImpl()
// IdlClassImpl modifications
Reference< XIdlField > EnumIdlClassImpl::getField( const OUString & rName )
- throw(css::uno::RuntimeException, std::exception)
{
if (! _pFields)
getFields(); // init members
@@ -183,7 +172,6 @@ Reference< XIdlField > EnumIdlClassImpl::getField( const OUString & rName )
}
Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields()
- throw(css::uno::RuntimeException, std::exception)
{
if (! _pFields)
{
@@ -209,7 +197,6 @@ Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields()
}
void EnumIdlClassImpl::createObject( Any & rObj )
- throw(css::uno::RuntimeException, std::exception)
{
sal_Int32 eVal =
reinterpret_cast<typelib_EnumTypeDescription *>(IdlClassImpl::getTypeDescr())->nDefaultEnumValue;