From 69bea8fde2bb98ee4b8522e9968a6648d0d1329b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 31 Aug 2016 21:30:42 +0100 Subject: [PATCH] coverity#1372381 Uncaught exception Change-Id: I37fb1503737f81edb92a0571cc6222a69ba465c2 --- svl/source/inc/passwordcontainer.hxx | 2 +- svl/source/passwordcontainer/passwordcontainer.cxx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx index cb09b72b6692..6a34126af6c0 100644 --- a/svl/source/inc/passwordcontainer.hxx +++ b/svl/source/inc/passwordcontainer.hxx @@ -268,7 +268,7 @@ css::task::UrlRecord find( throw(css::uno::RuntimeException, std::exception); static ::std::vector< OUString > DecodePasswords( const OUString& aLine, const OUString& aMasterPassword ) - throw(css::uno::RuntimeException); + throw(css::uno::RuntimeException, std::exception); static OUString EncodePasswords(const std::vector< OUString >& lines, const OUString& aMasterPassword ) throw(css::uno::RuntimeException); diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index d5be5b4be774..16b3444f8044 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -402,7 +402,6 @@ PasswordContainer::~PasswordContainer() } } - void SAL_CALL PasswordContainer::disposing( const EventObject& ) throw(RuntimeException, std::exception) { ::osl::MutexGuard aGuard( mMutex ); @@ -420,8 +419,7 @@ void SAL_CALL PasswordContainer::disposing( const EventObject& ) throw(RuntimeEx } } - -vector< OUString > PasswordContainer::DecodePasswords( const OUString& aLine, const OUString& aMasterPasswd ) throw(RuntimeException) +vector< OUString > PasswordContainer::DecodePasswords( const OUString& aLine, const OUString& aMasterPasswd ) throw(RuntimeException, std::exception) { if( !aMasterPasswd.isEmpty() ) {