From 5e21a413c788f839a66d9e4c14e745ed18058db8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 25 Feb 2014 21:31:58 +0100 Subject: cppuhelper: retrofit std::exception into overriding exception specs Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3 --- javaunohelper/source/vm.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'javaunohelper/source') diff --git a/javaunohelper/source/vm.cxx b/javaunohelper/source/vm.cxx index f7c3e6b25e26..9b145b4a1717 100644 --- a/javaunohelper/source/vm.cxx +++ b/javaunohelper/source/vm.cxx @@ -55,10 +55,10 @@ public: // XSingleComponentFactory impl virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithContext( css::uno::Reference< css::uno::XComponentContext > const & xContext ) - throw (css::uno::Exception); + throw (css::uno::Exception, std::exception); virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArgumentsAndContext( css::uno::Sequence< css::uno::Any > const & args, css::uno::Reference< css::uno::XComponentContext > const & xContext ) - throw (css::uno::Exception); + throw (css::uno::Exception, std::exception); }; void SingletonFactory::disposing() @@ -68,7 +68,7 @@ void SingletonFactory::disposing() css::uno::Reference< css::uno::XInterface > SingletonFactory::createInstanceWithContext( css::uno::Reference< css::uno::XComponentContext > const & xContext ) - throw (css::uno::Exception) + throw (css::uno::Exception, std::exception) { sal_Int64 handle = reinterpret_cast< sal_Int64 >( m_vm_access.get() ); css::uno::Any arg( @@ -83,7 +83,7 @@ css::uno::Reference< css::uno::XInterface > SingletonFactory::createInstanceWith css::uno::Reference< css::uno::XInterface > SingletonFactory::createInstanceWithArgumentsAndContext( css::uno::Sequence< css::uno::Any > const & args, css::uno::Reference< css::uno::XComponentContext > const & xContext ) - throw (css::uno::Exception) + throw (css::uno::Exception, std::exception) { return xContext->getServiceManager()->createInstanceWithArgumentsAndContext( OUString("com.sun.star.java.JavaVirtualMachine"), -- cgit