From decd61013cba116e343537a50f4b1f6bc785022b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 31 Jan 2015 20:58:44 +0000 Subject: coverity#1267685 Uncaught exception Change-Id: Ia4728352f86a8c1ac2007918708430b5221ea9fe --- framework/source/accelerators/acceleratorconfiguration.cxx | 4 ++-- framework/source/inc/accelerators/acceleratorconfiguration.hxx | 4 ++-- offapi/com/sun/star/ui/XAcceleratorConfiguration.idl | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/framework/source/accelerators/acceleratorconfiguration.cxx b/framework/source/accelerators/acceleratorconfiguration.cxx index 1643bf1e7e7d..a891be9045c7 100644 --- a/framework/source/accelerators/acceleratorconfiguration.cxx +++ b/framework/source/accelerators/acceleratorconfiguration.cxx @@ -737,8 +737,8 @@ AcceleratorCache::TKeyList::const_iterator lcl_getPreferredKey(const Accelerator } css::uno::Sequence< css::uno::Any > SAL_CALL XCUBasedAcceleratorConfiguration::getPreferredKeyEventsForCommandList(const css::uno::Sequence< OUString >& lCommandList) - throw(css::lang::IllegalArgumentException , - css::uno::RuntimeException, std::exception ) + throw(css::lang::IllegalArgumentException, css::container::NoSuchElementException, + css::uno::RuntimeException, std::exception) { SolarMutexGuard g; diff --git a/framework/source/inc/accelerators/acceleratorconfiguration.hxx b/framework/source/inc/accelerators/acceleratorconfiguration.hxx index d5eaace6f11b..784e391ec784 100644 --- a/framework/source/inc/accelerators/acceleratorconfiguration.hxx +++ b/framework/source/inc/accelerators/acceleratorconfiguration.hxx @@ -323,8 +323,8 @@ class XCUBasedAcceleratorConfiguration : public ::cppu::WeakImplHelper4< css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPreferredKeyEventsForCommandList(const css::uno::Sequence< OUString >& lCommandList) - throw(css::lang::IllegalArgumentException , - css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; + throw(css::lang::IllegalArgumentException, css::container::NoSuchElementException, + css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL removeCommandFromAllKeyEvents(const OUString& sCommand) throw(css::lang::IllegalArgumentException , diff --git a/offapi/com/sun/star/ui/XAcceleratorConfiguration.idl b/offapi/com/sun/star/ui/XAcceleratorConfiguration.idl index e5c32af74b15..28926c7bd8ec 100644 --- a/offapi/com/sun/star/ui/XAcceleratorConfiguration.idl +++ b/offapi/com/sun/star/ui/XAcceleratorConfiguration.idl @@ -212,7 +212,8 @@ interface XAcceleratorConfiguration because every URL schema can be used here. */ sequence< any > getPreferredKeyEventsForCommandList( [in] sequence< string > lCommandList ) - raises(com::sun::star::lang::IllegalArgumentException); + raises(com::sun::star::lang::IllegalArgumentException, + com::sun::star::container::NoSuchElementException); /** search for an key-command-binding inside this configuration set, where the specified command is used. -- cgit