summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-31 21:51:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-09-01 10:40:14 +0100
commitde32f503202be634d8de95744d4942d74a4a9511 (patch)
tree027437667bad119e8107edd1d60e8c7198fd70b9 /svl
parent2ff52852a267f6a7c63d00291bc38677916d39c5 (diff)
coverity#1372396 Uncaught exception
Change-Id: Idd2be5ba18d68ab9b5f7da12b69727480ad9ff50
Diffstat (limited to 'svl')
-rw-r--r--svl/source/inc/passwordcontainer.hxx2
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx4
2 files changed, 2 insertions, 4 deletions
diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx
index 6a34126af6c0..f2212e3d8382 100644
--- a/svl/source/inc/passwordcontainer.hxx
+++ b/svl/source/inc/passwordcontainer.hxx
@@ -321,7 +321,7 @@ public:
static css::uno::Reference< css::lang::XSingleServiceFactory > SAL_CALL
impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& ServiceManager ) throw(css::uno::RuntimeException);
static css::uno::Reference< css::uno::XInterface > SAL_CALL
- impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::RuntimeException );
+ impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceManager ) throw( css::uno::RuntimeException, std::exception );
// XServiceInfo
virtual OUString SAL_CALL getImplementationName( ) throw(css::uno::RuntimeException, std::exception) override;
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index 16b3444f8044..347129100324 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -1358,13 +1358,11 @@ OUString SAL_CALL PasswordContainer::impl_getStaticImplementationName() throw(un
return OUString("stardiv.svl.PasswordContainer");
}
-
-Reference< XInterface > SAL_CALL PasswordContainer::impl_createInstance( const Reference< XMultiServiceFactory >& xServiceManager ) throw( RuntimeException )
+Reference< XInterface > SAL_CALL PasswordContainer::impl_createInstance( const Reference< XMultiServiceFactory >& xServiceManager ) throw( RuntimeException, std::exception )
{
return Reference< XInterface >( *new PasswordContainer( xServiceManager ) );
}
-
Reference< XSingleServiceFactory > SAL_CALL PasswordContainer::impl_createFactory( const Reference< XMultiServiceFactory >& ServiceManager ) throw(RuntimeException)
{
Reference< XSingleServiceFactory > xReturn( ::cppu::createOneInstanceFactory( ServiceManager,