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

coverity#707371 Uncaught exception

Change-Id: I5b1de7ec2060aa4083a07c2ce250b47d798155f7
üst 0bab690a
......@@ -36,7 +36,7 @@ interface XDocument : com::sun::star::script::XInvocation
[attribute] long HyphenationZone;
[attribute] long ConsecutiveHyphensLimit;
XRange Range( [in] any Start, [in] any End );
XRange Range( [in] any Start, [in] any End ) raises (com::sun::star::script::BasicErrorException);
any BuiltInDocumentProperties( [in] any Index );
any CustomDocumentProperties( [in] any Index );
any Bookmarks( [in] any Index );
......
......@@ -81,7 +81,8 @@ SwVbaDocument::getContent() throw ( uno::RuntimeException, std::exception )
}
uno::Reference< word::XRange > SAL_CALL
SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd ) throw ( uno::RuntimeException, std::exception )
SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd )
throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{
if( !rStart.hasValue() && !rEnd.hasValue() )
return getContent();
......
......@@ -42,7 +42,8 @@ public:
// XDocument
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL getContent() throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL Range( const css::uno::Any& rStart, const css::uno::Any& rEnd ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL Range( const css::uno::Any& rStart, const css::uno::Any& rEnd )
throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL BuiltInDocumentProperties( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL CustomDocumentProperties( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL Bookmarks( const css::uno::Any& rIndex ) 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