From 2e9d267c2ba944d8465849af608f2ee097f5810e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 24 Feb 2014 12:41:35 +0000 Subject: [PATCH] coverity#737278 Uncaught exception Change-Id: I8b9c02d5e87433cb48a7cee37b696d36e453dd52 --- sc/source/filter/xml/xmlexprt.cxx | 3 ++- sc/source/ui/unoobj/appluno.cxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 8578f7fdf545..1ba997798cba 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -421,7 +421,8 @@ uno::Sequence< OUString > SAL_CALL ScXMLOasisExport_Settings_getSupportedService } uno::Reference< uno::XInterface > SAL_CALL ScXMLOasisExport_Settings_createInstance( - const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) throw( uno::Exception ) + const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) + throw (uno::Exception, std::exception) { return (cppu::OWeakObject*)new ScXMLExport(comphelper::getComponentContext(rSMgr), ScXMLOasisExport_Settings_getImplementationName(), EXPORT_SETTINGS|EXPORT_OASIS); } diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx index 3f4ff852d99c..0b2e0f7fa26c 100644 --- a/sc/source/ui/unoobj/appluno.cxx +++ b/sc/source/ui/unoobj/appluno.cxx @@ -123,7 +123,8 @@ extern uno::Reference< uno::XInterface > SAL_CALL ScXMLOasisExport_Content_creat extern uno::Sequence< OUString > SAL_CALL ScXMLOasisExport_Settings_getSupportedServiceNames() throw(); extern OUString SAL_CALL ScXMLOasisExport_Settings_getImplementationName() throw(); extern uno::Reference< uno::XInterface > SAL_CALL ScXMLOasisExport_Settings_createInstance( - const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) throw( uno::Exception ); + const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) + throw (uno::Exception, std::exception);