Kaydet (Commit) ebaa9958 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1267687 Uncaught exception

Change-Id: If7af42b345c876d29d750a29c1a406e862788b06
üst decd6101
......@@ -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" );
......
......@@ -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,
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment