diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 09:57:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 11:29:21 +0000 |
commit | d83befd58d7713249e80ecfe74a16209dbda2ac7 (patch) | |
tree | 53ab40e4f11d5522b7b8026ec67120048c00ae2d /sc | |
parent | 858dc2a4e260ddf21bae7e5325bfe193cab70455 (diff) |
coverity#1158305 Uncaught exception
Change-Id: I7ac01a1abd7f7137d82df28ec2d93ef24d9b64a1
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/vba/vbarange.hxx | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index a474fffe692a..e18d74125cf2 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -3763,7 +3763,8 @@ ScVbaRange::getDefaultMethodName( ) throw (uno::RuntimeException) // returns calc internal col. width ( in points ) double -ScVbaRange::getCalcColWidth( const table::CellRangeAddress& rAddress) throw (uno::RuntimeException) +ScVbaRange::getCalcColWidth(const table::CellRangeAddress& rAddress) + throw (uno::RuntimeException, std::exception) { ScDocument* pDoc = getScDocument(); sal_uInt16 nWidth = pDoc->GetOriginalWidth( static_cast< SCCOL >( rAddress.StartColumn ), static_cast< SCTAB >( rAddress.Sheet ) ); @@ -3773,7 +3774,8 @@ ScVbaRange::getCalcColWidth( const table::CellRangeAddress& rAddress) throw (uno } double -ScVbaRange::getCalcRowHeight( const table::CellRangeAddress& rAddress ) throw (uno::RuntimeException) +ScVbaRange::getCalcRowHeight(const table::CellRangeAddress& rAddress) + throw (uno::RuntimeException, std::exception) { ScDocument* pDoc = getDocumentFromRange( mxRange ); sal_uInt16 nWidth = pDoc->GetOriginalHeight( rAddress.StartRow, rAddress.Sheet ); diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx index 25074be48989..93663cd1c257 100644 --- a/sc/source/ui/vba/vbarange.hxx +++ b/sc/source/ui/vba/vbarange.hxx @@ -87,8 +87,10 @@ class ScVbaRange : public ScVbaRange_BASE sal_Bool mbIsRows; sal_Bool mbIsColumns; css::uno::Reference< ov::excel::XValidation > m_xValidation; - double getCalcColWidth( const css::table::CellRangeAddress& ) throw (css::uno::RuntimeException); - double getCalcRowHeight( const css::table::CellRangeAddress& ) throw (css::uno::RuntimeException); + double getCalcColWidth(const css::table::CellRangeAddress&) + throw (css::uno::RuntimeException, std::exception); + double getCalcRowHeight(const css::table::CellRangeAddress&) + throw (css::uno::RuntimeException, std::exception); void visitArray( ArrayVisitor& vistor ); css::uno::Reference< ov::excel::XRange > getEntireColumnOrRow( bool bColumn = true ) throw( css::uno::RuntimeException ); |