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

coverity#707393 Uncaught exception

Change-Id: I89ea074bacf7884fe8b8471cfd208f643326a7e1
üst 4a662ef7
...@@ -46,7 +46,7 @@ interface XRange ...@@ -46,7 +46,7 @@ interface XRange
[attribute] long End; [attribute] long End;
[attribute, readonly] XListFormat ListFormat; [attribute, readonly] XListFormat ListFormat;
void InsertBreak( [in] any Type ); void InsertBreak( [in] any Type ) raises (com::sun::star::script::BasicErrorException);
void Select(); void Select();
void InsertParagraph(); void InsertParagraph();
void InsertParagraphBefore(); void InsertParagraphBefore();
......
...@@ -168,7 +168,8 @@ SwVbaRange::setText( const OUString& rText ) throw ( uno::RuntimeException, std: ...@@ -168,7 +168,8 @@ SwVbaRange::setText( const OUString& rText ) throw ( uno::RuntimeException, std:
} }
// FIXME: test is not pass // FIXME: test is not pass
void SAL_CALL SwVbaRange::InsertBreak( const uno::Any& _breakType ) throw (uno::RuntimeException, std::exception) void SAL_CALL SwVbaRange::InsertBreak(const uno::Any& _breakType)
throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{ {
// default type is wdPageBreak; // default type is wdPageBreak;
sal_Int32 nBreakType = word::WdBreakType::wdPageBreak; sal_Int32 nBreakType = word::WdBreakType::wdPageBreak;
......
...@@ -66,7 +66,10 @@ public: ...@@ -66,7 +66,10 @@ public:
virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL getListFormat() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::uno::Reference< ooo::vba::word::XListFormat > SAL_CALL getListFormat() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// Methods // Methods
virtual void SAL_CALL InsertBreak( const css::uno::Any& _breakType ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL InsertBreak(const css::uno::Any& _breakType)
throw (css::script::BasicErrorException,
css::uno::RuntimeException,
std::exception) SAL_OVERRIDE;
virtual void SAL_CALL Select() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL Select() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL InsertParagraph() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL InsertParagraph() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL InsertParagraphBefore() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL InsertParagraphBefore() throw (css::uno::RuntimeException, std::exception) 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