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

coverity#707380 Uncaught exception

Change-Id: I630323bb7b371925541f466563562378c339be6e
üst caa5a3ae
...@@ -43,7 +43,7 @@ public: ...@@ -43,7 +43,7 @@ public:
virtual uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception) SAL_OVERRIDE virtual uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception) SAL_OVERRIDE
{ {
if( Index != 1 ) if( Index != 1 )
throw container::NoSuchElementException(); throw lang::IndexOutOfBoundsException();
return uno::makeAny( uno::Reference< word::XPane >( new SwVbaPane( mxParent, mxContext, mxModel ) ) ); return uno::makeAny( uno::Reference< word::XPane >( new SwVbaPane( mxParent, mxContext, mxModel ) ) );
} }
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE virtual uno::Type SAL_CALL getElementType( ) throw (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