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

coverity#707375 Uncaught exception

Change-Id: I7fc84a17637d6dd4191525e91d49dd4e24bd3a26
üst cf4f433d
...@@ -31,7 +31,7 @@ interface XFields ...@@ -31,7 +31,7 @@ interface XFields
{ {
interface ooo::vba::XCollection; 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(); long Update();
}; };
......
...@@ -310,7 +310,7 @@ SwVbaFields::SwVbaFields( const uno::Reference< XHelperInterface >& xParent, con ...@@ -310,7 +310,7 @@ SwVbaFields::SwVbaFields( const uno::Reference< XHelperInterface >& xParent, con
} }
uno::Reference< word::XField > SAL_CALL 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; sal_Int32 nType = word::WdFieldType::wdFieldEmpty;
Type >>= nType; Type >>= nType;
......
...@@ -56,7 +56,7 @@ private: ...@@ -56,7 +56,7 @@ private:
public: 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 ); 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 // 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; virtual sal_Int32 SAL_CALL Update() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XEnumerationAccess // XEnumerationAccess
virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) SAL_OVERRIDE; virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) SAL_OVERRIDE;
......
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