From ebaa9958f5e816b4f926e6d35223a61f3d1414b0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 31 Jan 2015 21:01:07 +0000 Subject: coverity#1267687 Uncaught exception Change-Id: If7af42b345c876d29d750a29c1a406e862788b06 --- framework/source/accelerators/acceleratorconfiguration.cxx | 5 +++-- framework/source/inc/accelerators/acceleratorconfiguration.hxx | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'framework') diff --git a/framework/source/accelerators/acceleratorconfiguration.cxx b/framework/source/accelerators/acceleratorconfiguration.cxx index a891be9045c7..6728df528a06 100644 --- a/framework/source/accelerators/acceleratorconfiguration.cxx +++ b/framework/source/accelerators/acceleratorconfiguration.cxx @@ -568,8 +568,9 @@ OUString SAL_CALL XCUBasedAcceleratorConfiguration::getCommandByKeyEvent(const c void SAL_CALL XCUBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyEvent& aKeyEvent, const OUString& sCommand ) - throw(css::lang::IllegalArgumentException, - css::uno::RuntimeException, std::exception ) + throw (css::lang::IllegalArgumentException, + css::container::NoSuchElementException, + css::uno::RuntimeException, std::exception) { SAL_INFO( "fwk.accelerators", "XCUBasedAcceleratorConfiguration::setKeyEvent" ); diff --git a/framework/source/inc/accelerators/acceleratorconfiguration.hxx b/framework/source/inc/accelerators/acceleratorconfiguration.hxx index 784e391ec784..ef9440793eef 100644 --- a/framework/source/inc/accelerators/acceleratorconfiguration.hxx +++ b/framework/source/inc/accelerators/acceleratorconfiguration.hxx @@ -310,8 +310,8 @@ class XCUBasedAcceleratorConfiguration : public ::cppu::WeakImplHelper4< virtual void SAL_CALL setKeyEvent(const css::awt::KeyEvent& aKeyEvent, const OUString& sCommand ) - 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 removeKeyEvent(const css::awt::KeyEvent& aKeyEvent) throw(css::container::NoSuchElementException, -- cgit