diff --git a/comphelper/source/misc/servicedecl.cxx b/comphelper/source/misc/servicedecl.cxx index d48fd4c41789..18dd1432e9a7 100644 --- a/comphelper/source/misc/servicedecl.cxx +++ b/comphelper/source/misc/servicedecl.cxx @@ -51,12 +51,12 @@ public: // XSingleComponentFactory: virtual uno::Reference SAL_CALL createInstanceWithContext( uno::Reference const& xContext ) - throw (uno::Exception); + throw (uno::Exception, std::exception); virtual uno::Reference SAL_CALL createInstanceWithArgumentsAndContext( uno::Sequence const& args, uno::Reference const& xContext ) - throw (uno::Exception); + throw (uno::Exception, std::exception); private: virtual ~Factory(); @@ -90,7 +90,7 @@ uno::Sequence ServiceDecl::Factory::getSupportedServiceNames() // XSingleComponentFactory: uno::Reference ServiceDecl::Factory::createInstanceWithContext( uno::Reference const& xContext ) - throw (uno::Exception) + throw (uno::Exception, std::exception) { return m_rServiceDecl.m_createFunc( m_rServiceDecl, uno::Sequence(), xContext ); @@ -100,7 +100,7 @@ uno::Reference ServiceDecl::Factory::createInstanceWithArgumentsAndContext( uno::Sequence const& args, uno::Reference const& xContext ) - throw (uno::Exception) + throw (uno::Exception, std::exception) { return m_rServiceDecl.m_createFunc( m_rServiceDecl, args, xContext );