diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-17 18:38:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-17 21:13:52 +0100 |
commit | 4394c6b95c062426a08e90c94559d02095d28069 (patch) | |
tree | 42fc55a09fd2b15a18c25b3b0d9fdb5afe56da9c | |
parent | cf4f433dfb221e0d35b83bd5ff5e68c95ffbbb35 (diff) |
coverity#707375 Uncaught exception
Change-Id: I7fc84a17637d6dd4191525e91d49dd4e24bd3a26
-rw-r--r-- | oovbaapi/ooo/vba/word/XFields.idl | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbafield.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbafield.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/oovbaapi/ooo/vba/word/XFields.idl b/oovbaapi/ooo/vba/word/XFields.idl index 3d87a89d14ae..ddab2d73aa42 100644 --- a/oovbaapi/ooo/vba/word/XFields.idl +++ b/oovbaapi/ooo/vba/word/XFields.idl @@ -31,7 +31,7 @@ interface XFields { interface ooo::vba::XCollection; - XField Add([in] XRange Range, [in] any Type, [in] any Text,[in] any PreserveFormatting); + XField Add([in] XRange Range, [in] any Type, [in] any Text,[in] any PreserveFormatting) raises (com::sun::star::script::BasicErrorException); long Update(); }; diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx index 0fdcb3a899a0..c4c4288f345d 100644 --- a/sw/source/ui/vba/vbafield.cxx +++ b/sw/source/ui/vba/vbafield.cxx @@ -310,7 +310,7 @@ SwVbaFields::SwVbaFields( const uno::Reference< XHelperInterface >& xParent, con } uno::Reference< word::XField > SAL_CALL -SwVbaFields::Add( const css::uno::Reference< ::ooo::vba::word::XRange >& Range, const css::uno::Any& Type, const css::uno::Any& Text, const css::uno::Any& /*PreserveFormatting*/ ) throw (css::uno::RuntimeException, std::exception) +SwVbaFields::Add( const css::uno::Reference< ::ooo::vba::word::XRange >& Range, const css::uno::Any& Type, const css::uno::Any& Text, const css::uno::Any& /*PreserveFormatting*/ ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) { sal_Int32 nType = word::WdFieldType::wdFieldEmpty; Type >>= nType; diff --git a/sw/source/ui/vba/vbafield.hxx b/sw/source/ui/vba/vbafield.hxx index 24bc643a9d17..922ca8959ac5 100644 --- a/sw/source/ui/vba/vbafield.hxx +++ b/sw/source/ui/vba/vbafield.hxx @@ -56,7 +56,7 @@ private: public: SwVbaFields( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::frame::XModel >& xModel ); // XFields - virtual css::uno::Reference< ::ooo::vba::word::XField > SAL_CALL Add( const css::uno::Reference< ::ooo::vba::word::XRange >& Range, const css::uno::Any& Type, const css::uno::Any& Text, const css::uno::Any& PreserveFormatting ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual css::uno::Reference< ::ooo::vba::word::XField > SAL_CALL Add( const css::uno::Reference< ::ooo::vba::word::XRange >& Range, const css::uno::Any& Type, const css::uno::Any& Text, const css::uno::Any& PreserveFormatting ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Int32 SAL_CALL Update() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XEnumerationAccess virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) SAL_OVERRIDE; |