diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-31 21:01:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-01 22:10:38 +0000 |
commit | ebaa9958f5e816b4f926e6d35223a61f3d1414b0 (patch) | |
tree | 7bb7779f84bb88fa988f70c76c69a21e8253b287 | |
parent | decd61013cba116e343537a50f4b1f6bc785022b (diff) |
coverity#1267687 Uncaught exception
Change-Id: If7af42b345c876d29d750a29c1a406e862788b06
3 files changed, 7 insertions, 5 deletions
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, diff --git a/offapi/com/sun/star/ui/XAcceleratorConfiguration.idl b/offapi/com/sun/star/ui/XAcceleratorConfiguration.idl index 28926c7bd8ec..9a88b6094f44 100644 --- a/offapi/com/sun/star/ui/XAcceleratorConfiguration.idl +++ b/offapi/com/sun/star/ui/XAcceleratorConfiguration.idl @@ -134,7 +134,8 @@ interface XAcceleratorConfiguration */ void setKeyEvent( [in] com::sun::star::awt::KeyEvent aKeyEvent, [in] string sCommand ) - raises(com::sun::star::lang::IllegalArgumentException); + raises(com::sun::star::lang::IllegalArgumentException, + com::sun::star::container::NoSuchElementException); /** remove a key-command-binding from this configuration set. |