From 09188ebfc44af4a7a3e4747c80f1a49f3c2c288d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 2 Jun 2014 15:25:11 +0100 Subject: [PATCH] coverity#706959 Uncaught exception Change-Id: I6b18bd2df7ef190b39ceacd625bf2b62a53892fa --- include/vbahelper/vbaeventshelperbase.hxx | 4 +++- sc/source/ui/vba/vbaeventshelper.cxx | 3 ++- sc/source/ui/vba/vbaeventshelper.hxx | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/vbahelper/vbaeventshelperbase.hxx b/include/vbahelper/vbaeventshelperbase.hxx index 0f1b42c8d5ff..8641f067c334 100644 --- a/include/vbahelper/vbaeventshelperbase.hxx +++ b/include/vbahelper/vbaeventshelperbase.hxx @@ -135,7 +135,9 @@ protected: /** Derived classes have to return the name of the Basic document module. */ virtual OUString implGetDocumentModuleName( const EventHandlerInfo& rInfo, - const css::uno::Sequence< css::uno::Any >& rArgs ) const throw (css::lang::IllegalArgumentException) = 0; + const css::uno::Sequence< css::uno::Any >& rArgs ) const + throw (css::lang::IllegalArgumentException, + css::uno::RuntimeException) = 0; private: typedef ::std::map< sal_Int32, OUString > ModulePathMap; diff --git a/sc/source/ui/vba/vbaeventshelper.cxx b/sc/source/ui/vba/vbaeventshelper.cxx index e8ebdb2a66e4..c506dded4893 100644 --- a/sc/source/ui/vba/vbaeventshelper.cxx +++ b/sc/source/ui/vba/vbaeventshelper.cxx @@ -780,7 +780,8 @@ void ScVbaEventsHelper::implPostProcessEvent( EventQueue& rEventQueue, } OUString ScVbaEventsHelper::implGetDocumentModuleName( const EventHandlerInfo& rInfo, - const uno::Sequence< uno::Any >& rArgs ) const throw (lang::IllegalArgumentException) + const uno::Sequence< uno::Any >& rArgs ) const + throw (lang::IllegalArgumentException, uno::RuntimeException) { bool bSheetEvent = false; rInfo.maUserData >>= bSheetEvent; diff --git a/sc/source/ui/vba/vbaeventshelper.hxx b/sc/source/ui/vba/vbaeventshelper.hxx index 3a04e5f14652..93c946742562 100644 --- a/sc/source/ui/vba/vbaeventshelper.hxx +++ b/sc/source/ui/vba/vbaeventshelper.hxx @@ -41,7 +41,7 @@ protected: virtual bool implPrepareEvent( EventQueue& rEventQueue, const EventHandlerInfo& rInfo, const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::uno::RuntimeException) SAL_OVERRIDE; virtual css::uno::Sequence< css::uno::Any > implBuildArgumentList( const EventHandlerInfo& rInfo, const css::uno::Sequence< css::uno::Any >& rArgs ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) SAL_OVERRIDE; virtual void implPostProcessEvent( EventQueue& rEventQueue, const EventHandlerInfo& rInfo, bool bCancel ) throw (css::uno::RuntimeException) SAL_OVERRIDE; - virtual OUString implGetDocumentModuleName( const EventHandlerInfo& rInfo, const css::uno::Sequence< css::uno::Any >& rArgs ) const throw (css::lang::IllegalArgumentException) SAL_OVERRIDE; + virtual OUString implGetDocumentModuleName( const EventHandlerInfo& rInfo, const css::uno::Sequence< css::uno::Any >& rArgs ) const throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) SAL_OVERRIDE; private: /** Checks if selection has been changed compared to selection of last call.