diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-09 09:05:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-09 09:59:02 +0100 |
commit | 92fe8838f7c6e2bd411b381a77f0fc4c43272b1d (patch) | |
tree | 609c0b7f33ecce86197365a18e51d6f74a8b28b3 /sw/source/ui | |
parent | ed8678f3f810d096f00b2dc4053d519ab487be69 (diff) |
coverity#707382 Uncaught exception
and
coverity#707383 Uncaught exception
coverity#707384 Uncaught exception
coverity#707385 Uncaught exception
coverity#707386 Uncaught exception
coverity#707387 Uncaught exception
coverity#707388 Uncaught exception
coverity#707389 Uncaught exception
coverity#707390 Uncaught exception
coverity#707391 Uncaught exception
coverity#707409 Uncaught exception
coverity#707411 Uncaught exception
coverity#707413 Uncaught exception
coverity#707414 Uncaught exception
coverity#706919 Uncaught exception
coverity#706920 Uncaught exception
coverity#706933 Uncaught exception
coverity#706935 Uncaught exception
coverity#706968 Uncaught exception
coverity#706970 Uncaught exception
coverity#706973 Uncaught exception
coverity#706974 Uncaught exception
coverity#707032 Uncaught exception
coverity#707044 Uncaught exception
coverity#738455 Uncaught exception
coverity#738456 Uncaught exception
Change-Id: Ifd4c0a2b6b4ddcb5df01a951b8d56435ee32d754
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/vba/vbadocument.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbafield.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaoptions.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaparagraphformat.cxx | 20 | ||||
-rw-r--r-- | sw/source/ui/vba/vbarange.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/vba/vbarangehelper.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/vba/vbarows.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaselection.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/vba/vbastyles.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbatabstops.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaview.cxx | 12 | ||||
-rw-r--r-- | sw/source/ui/vba/vbawrapformat.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/vba/vbawrapformat.hxx | 2 |
13 files changed, 35 insertions, 35 deletions
diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx index f3c26cb1c928..b3979f5be7e8 100644 --- a/sw/source/ui/vba/vbadocument.cxx +++ b/sw/source/ui/vba/vbadocument.cxx @@ -118,7 +118,7 @@ SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd ) } catch(const uno::Exception&) { - DebugHelper::exception(SbERR_METHOD_FAILED, OUString()); + DebugHelper::basicexception(SbERR_METHOD_FAILED, OUString()); } } return uno::Reference< word::XRange >( new SwVbaRange( this, mxContext, mxTextDocument, xStart, xEnd ) ); diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx index 3b27aa37f3a7..4c59b40f7d7e 100644 --- a/sw/source/ui/vba/vbafield.cxx +++ b/sw/source/ui/vba/vbafield.cxx @@ -366,7 +366,7 @@ uno::Reference< text::XTextField > SwVbaFields::Create_Field_FileName( const OUS aReadParam.SkipToNextToken(); break; default: - DebugHelper::exception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(SbERR_BAD_ARGUMENT, OUString()); break; } } diff --git a/sw/source/ui/vba/vbaoptions.cxx b/sw/source/ui/vba/vbaoptions.cxx index a2d4591900bb..95e0fa118f09 100644 --- a/sw/source/ui/vba/vbaoptions.cxx +++ b/sw/source/ui/vba/vbaoptions.cxx @@ -83,7 +83,7 @@ SwVbaOptions::DefaultFilePath( sal_Int32 _path ) } default: { - DebugHelper::exception( SbERR_NOT_IMPLEMENTED, OUString() ); + DebugHelper::basicexception( SbERR_NOT_IMPLEMENTED, OUString() ); break; } } diff --git a/sw/source/ui/vba/vbaparagraphformat.cxx b/sw/source/ui/vba/vbaparagraphformat.cxx index dc19f1e25b27..976200d9308e 100644 --- a/sw/source/ui/vba/vbaparagraphformat.cxx +++ b/sw/source/ui/vba/vbaparagraphformat.cxx @@ -86,7 +86,7 @@ void SAL_CALL SwVbaParagraphFormat::setKeepTogether( const uno::Any& _keeptogeth } else { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); } } @@ -106,7 +106,7 @@ void SAL_CALL SwVbaParagraphFormat::setKeepWithNext( const uno::Any& _keepwithne } else { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); } } @@ -126,7 +126,7 @@ void SAL_CALL SwVbaParagraphFormat::setHyphenation( const uno::Any& _hyphenation } else { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); } } @@ -174,7 +174,7 @@ void SAL_CALL SwVbaParagraphFormat::setNoLineNumber( const uno::Any& _nolinenumb } else { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); } } @@ -233,7 +233,7 @@ void SAL_CALL SwVbaParagraphFormat::setPageBreakBefore( const uno::Any& _breakbe } else { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); } } @@ -324,7 +324,7 @@ void SAL_CALL SwVbaParagraphFormat::setWidowControl( const uno::Any& _widowcontr } else { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); } } @@ -402,7 +402,7 @@ style::LineSpacing SwVbaParagraphFormat::getOOoLineSpacingFromRule( sal_Int32 _l } default: { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); break; } } @@ -467,7 +467,7 @@ sal_Int32 SwVbaParagraphFormat::getMSWordLineSpacingRule( style::LineSpacing& rL } default: { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); } } return wdLineSpacing; @@ -507,7 +507,7 @@ sal_Int32 SwVbaParagraphFormat::getOOoAlignment( sal_Int32 _alignment ) } default: { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( SbERR_BAD_PARAMETER, OUString() ); } } return nParaAjust; @@ -540,7 +540,7 @@ sal_Int32 SwVbaParagraphFormat::getMSWordAlignment( sal_Int32 _alignment ) } default: { - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception( SbERR_BAD_PARAMETER, OUString() ); } } return wdAlignment; diff --git a/sw/source/ui/vba/vbarange.cxx b/sw/source/ui/vba/vbarange.cxx index d6ef73cc25f1..fca5ae1eeb36 100644 --- a/sw/source/ui/vba/vbarange.cxx +++ b/sw/source/ui/vba/vbarange.cxx @@ -193,10 +193,10 @@ void SAL_CALL SwVbaRange::InsertBreak(const uno::Any& _breakType) case word::WdBreakType::wdSectionBreakNextPage: case word::WdBreakType::wdSectionBreakOddPage: case word::WdBreakType::wdTextWrappingBreak: - DebugHelper::exception( SbERR_NOT_IMPLEMENTED, OUString() ); + DebugHelper::basicexception( SbERR_NOT_IMPLEMENTED, OUString() ); break; default: - DebugHelper::exception( SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception( SbERR_BAD_PARAMETER, OUString() ); } if( eBreakType != style::BreakType_NONE ) @@ -269,7 +269,7 @@ void SwVbaRange::GetStyleInfo(OUString& aStyleName, OUString& aStyleType ) throw } if( aStyleType.isEmpty() ) { - DebugHelper::exception( SbERR_INTERNAL_ERROR, OUString() ); + DebugHelper::runtimeexception( SbERR_INTERNAL_ERROR, OUString() ); } } diff --git a/sw/source/ui/vba/vbarangehelper.cxx b/sw/source/ui/vba/vbarangehelper.cxx index 0e897ba81cf9..e4e1b92a6e9e 100644 --- a/sw/source/ui/vba/vbarangehelper.cxx +++ b/sw/source/ui/vba/vbarangehelper.cxx @@ -102,7 +102,7 @@ uno::Reference< text::XTextCursor > SwVbaRangeHelper::initCursor( const uno::Ref } catch (const uno::Exception& e) { - DebugHelper::exception(e); + DebugHelper::basicexception(e); } if( !bGotTextCursor || !xTextCursor.is() ) @@ -115,7 +115,7 @@ uno::Reference< text::XTextCursor > SwVbaRangeHelper::initCursor( const uno::Ref } catch (const uno::Exception& e) { - DebugHelper::exception(e); + DebugHelper::basicexception(e); } } @@ -128,7 +128,7 @@ uno::Reference< text::XTextCursor > SwVbaRangeHelper::initCursor( const uno::Ref } catch (const uno::Exception& e) { - DebugHelper::exception(e); + DebugHelper::basicexception(e); } } return xTextCursor; diff --git a/sw/source/ui/vba/vbarows.cxx b/sw/source/ui/vba/vbarows.cxx index 5f7cb92cd7a6..aedad5b7ce5a 100644 --- a/sw/source/ui/vba/vbarows.cxx +++ b/sw/source/ui/vba/vbarows.cxx @@ -222,7 +222,7 @@ void SAL_CALL SwVbaRows::SetLeftIndent( float LeftIndent, ::sal_Int32 RulerStyle } default: { - DebugHelper::exception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::runtimeexception(SbERR_BAD_ARGUMENT, OUString()); } } } diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index 036061594560..930ede4af8b8 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -248,7 +248,7 @@ SwVbaSelection::Move( const uno::Any& _unit, const uno::Any& _count, const uno:: { if( nExtend == word::WdMovementType::wdExtend ) { - DebugHelper::exception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(SbERR_BAD_ARGUMENT, OUString()); return; } NextCell( nCount, eDirection ); @@ -358,7 +358,7 @@ void SwVbaSelection::NextCell(sal_Int32 nCount, word::E_DIRECTION eDirection) xCursorProps->getPropertyValue("Cell") >>= xCell; if( !xTextTable.is() || !xCell.is() ) { - DebugHelper::exception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(SbERR_BAD_ARGUMENT, OUString()); return; } uno::Reference< beans::XPropertySet > xCellProps( xCell, uno::UNO_QUERY_THROW ); @@ -390,7 +390,7 @@ void SwVbaSelection::NextCell(sal_Int32 nCount, word::E_DIRECTION eDirection) } default: { - DebugHelper::exception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(SbERR_BAD_ARGUMENT, OUString()); return; } } @@ -558,7 +558,7 @@ uno::Reference< word::XRange > SAL_CALL SwVbaSelection::GoTo( const uno::Any& _w { sal_Int32 nWhat = 0; if( !( _what >>= nWhat ) ) - DebugHelper::exception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(SbERR_BAD_ARGUMENT, OUString()); switch( nWhat ) { case word::WdGoToItem::wdGoToBookmark: diff --git a/sw/source/ui/vba/vbastyles.cxx b/sw/source/ui/vba/vbastyles.cxx index 530677f4a5ad..66cd12c02112 100644 --- a/sw/source/ui/vba/vbastyles.cxx +++ b/sw/source/ui/vba/vbastyles.cxx @@ -328,7 +328,7 @@ SwVbaStyles::Item( const uno::Any& Index1, const uno::Any& Index2 ) break; } default: - DebugHelper::exception( SbERR_INTERNAL_ERROR, OUString() ); + DebugHelper::basicexception( SbERR_INTERNAL_ERROR, OUString() ); } uno::Reference< style::XStyleFamiliesSupplier > xStyleSupplier( mxModel, uno::UNO_QUERY_THROW); uno::Reference< container::XNameAccess > xStylesAccess( xStyleSupplier->getStyleFamilies()->getByName( aStyleType ), uno::UNO_QUERY_THROW ); diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx index 259516fa2d27..128b6644a38a 100644 --- a/sw/source/ui/vba/vbatabstops.cxx +++ b/sw/source/ui/vba/vbatabstops.cxx @@ -144,7 +144,7 @@ uno::Reference< word::XTabStop > SAL_CALL SwVbaTabStops::Add( float Position, co case word::WdTabAlignment::wdAlignTabBar: case word::WdTabAlignment::wdAlignTabList: { - DebugHelper::exception( SbERR_NOT_IMPLEMENTED, OUString() ); + DebugHelper::basicexception( SbERR_NOT_IMPLEMENTED, OUString() ); break; } default: diff --git a/sw/source/ui/vba/vbaview.cxx b/sw/source/ui/vba/vbaview.cxx index b47188c76672..3cf95f492bf0 100644 --- a/sw/source/ui/vba/vbaview.cxx +++ b/sw/source/ui/vba/vbaview.cxx @@ -148,7 +148,7 @@ SwVbaView::setSeekView( ::sal_Int32 _seekview ) throw (css::uno::RuntimeExceptio } else { - DebugHelper::exception( SbERR_NO_ACTIVE_OBJECT, OUString() ); + DebugHelper::runtimeexception( SbERR_NO_ACTIVE_OBJECT, OUString() ); } break; } @@ -163,7 +163,7 @@ SwVbaView::setSeekView( ::sal_Int32 _seekview ) throw (css::uno::RuntimeExceptio } else { - DebugHelper::exception( SbERR_NO_ACTIVE_OBJECT, OUString() ); + DebugHelper::runtimeexception( SbERR_NO_ACTIVE_OBJECT, OUString() ); } break; } @@ -235,7 +235,7 @@ SwVbaView::setType( ::sal_Int32 _type ) throw (css::uno::RuntimeException, std:: break; } default: - DebugHelper::exception( SbERR_NOT_IMPLEMENTED, OUString() ); + DebugHelper::runtimeexception( SbERR_NOT_IMPLEMENTED, OUString() ); } } @@ -316,7 +316,7 @@ uno::Reference< text::XTextRange > SwVbaView::getHFTextRange( sal_Int32 nType ) while( hasNextPage && ( xStyle == word::getCurrentPageStyle( mxModel ) ) ); if( !hasNextPage ) - DebugHelper::exception( SbERR_BAD_ACTION, OUString() ); + DebugHelper::basicexception( SbERR_BAD_ACTION, OUString() ); } break; } @@ -356,7 +356,7 @@ uno::Reference< text::XTextRange > SwVbaView::getHFTextRange( sal_Int32 nType ) if( nType == word::WdSeekView::wdSeekEvenPagesFooter || nType == word::WdSeekView::wdSeekEvenPagesHeader ) { - DebugHelper::exception( SbERR_BAD_ACTION, OUString() ); + DebugHelper::basicexception( SbERR_BAD_ACTION, OUString() ); } xText.set( xPageProps->getPropertyValue( aPropText ), uno::UNO_QUERY_THROW ); } @@ -364,7 +364,7 @@ uno::Reference< text::XTextRange > SwVbaView::getHFTextRange( sal_Int32 nType ) mxModel->unlockControllers(); if( !xText.is() ) { - DebugHelper::exception( SbERR_INTERNAL_ERROR, OUString() ); + DebugHelper::basicexception( SbERR_INTERNAL_ERROR, OUString() ); } uno::Reference< text::XTextRange > xTextRange = word::getFirstObjectPosition( xText ); return xTextRange; diff --git a/sw/source/ui/vba/vbawrapformat.cxx b/sw/source/ui/vba/vbawrapformat.cxx index 251e41507ffe..6944558ba9e1 100644 --- a/sw/source/ui/vba/vbawrapformat.cxx +++ b/sw/source/ui/vba/vbawrapformat.cxx @@ -31,7 +31,7 @@ SwVbaWrapFormat::SwVbaWrapFormat( uno::Sequence< uno::Any > const& aArgs, uno::R m_xPropertySet.set( m_xShape, uno::UNO_QUERY_THROW ); } -void SwVbaWrapFormat::makeWrap() throw (uno::RuntimeException, script::BasicErrorException) +void SwVbaWrapFormat::makeWrap() throw (uno::RuntimeException) { text::WrapTextMode eTextMode = text::WrapTextMode_NONE; if( mnSide == word::WdWrapSideType::wdWrapLeft ) @@ -73,7 +73,7 @@ void SwVbaWrapFormat::makeWrap() throw (uno::RuntimeException, script::BasicErro } default: { - DebugHelper::exception(SbERR_BAD_ARGUMENT, OUString()); + DebugHelper::runtimeexception(SbERR_BAD_ARGUMENT, OUString()); } } } diff --git a/sw/source/ui/vba/vbawrapformat.hxx b/sw/source/ui/vba/vbawrapformat.hxx index d72cb05afe2c..14a701d3f21d 100644 --- a/sw/source/ui/vba/vbawrapformat.hxx +++ b/sw/source/ui/vba/vbawrapformat.hxx @@ -34,7 +34,7 @@ private: sal_Int32 mnSide; private: - void makeWrap() throw (css::uno::RuntimeException, css::script::BasicErrorException); + void makeWrap() throw (css::uno::RuntimeException); float getDistance( const OUString& sName ) throw (css::uno::RuntimeException); void setDistance( const OUString& sName, float _distance ) throw (css::uno::RuntimeException); |