diff options
Diffstat (limited to 'stoc/source/invocation_adapterfactory/iafactory.cxx')
-rw-r--r-- | stoc/source/invocation_adapterfactory/iafactory.cxx | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx index d9369716762d..ed9977ffba45 100644 --- a/stoc/source/invocation_adapterfactory/iafactory.cxx +++ b/stoc/source/invocation_adapterfactory/iafactory.cxx @@ -103,22 +103,17 @@ public: virtual ~FactoryImpl() override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName() - throw (RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) - throw (RuntimeException, std::exception) override; - virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() - throw (RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName() override; + virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) override; + virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() override; // XInvocationAdapterFactory virtual Reference< XInterface > SAL_CALL createAdapter( - const Reference< script::XInvocation > & xReceiver, const Type & rType ) - throw (RuntimeException, std::exception) override; + const Reference< script::XInvocation > & xReceiver, const Type & rType ) override; // XInvocationAdapterFactory2 virtual Reference< XInterface > SAL_CALL createAdapter( const Reference< script::XInvocation > & xReceiver, - const Sequence< Type > & rTypes ) - throw (RuntimeException, std::exception) override; + const Sequence< Type > & rTypes ) override; }; struct AdapterImpl; @@ -810,7 +805,6 @@ static inline AdapterImpl * lookup_adapter( Reference< XInterface > FactoryImpl::createAdapter( const Reference< script::XInvocation > & xReceiver, const Sequence< Type > & rTypes ) - throw (RuntimeException, std::exception) { Reference< XInterface > xRet; if (xReceiver.is() && rTypes.getLength()) @@ -869,7 +863,6 @@ Reference< XInterface > FactoryImpl::createAdapter( Reference< XInterface > FactoryImpl::createAdapter( const Reference< script::XInvocation > & xReceiver, const Type & rType ) - throw (RuntimeException, std::exception) { return createAdapter( xReceiver, Sequence< Type >( &rType, 1 ) ); } @@ -877,19 +870,16 @@ Reference< XInterface > FactoryImpl::createAdapter( // XServiceInfo OUString FactoryImpl::getImplementationName() - throw (RuntimeException, std::exception) { return invadp_getImplementationName(); } sal_Bool FactoryImpl::supportsService( const OUString & rServiceName ) - throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > FactoryImpl::getSupportedServiceNames() - throw (RuntimeException, std::exception) { return invadp_getSupportedServiceNames(); } @@ -897,7 +887,6 @@ Sequence< OUString > FactoryImpl::getSupportedServiceNames() /// @throws Exception static Reference< XInterface > SAL_CALL FactoryImpl_create( const Reference< XComponentContext > & xContext ) - throw (Exception) { return static_cast<cppu::OWeakObject *>(new FactoryImpl( xContext )); } |