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 /sc/source/ui/vba/vbapagesetup.cxx | |
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 'sc/source/ui/vba/vbapagesetup.cxx')
-rw-r--r-- | sc/source/ui/vba/vbapagesetup.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx index 7f91a80da576..6f9d7ee8812a 100644 --- a/sc/source/ui/vba/vbapagesetup.cxx +++ b/sc/source/ui/vba/vbapagesetup.cxx @@ -200,7 +200,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom) throw (css::uno::Ru zoom >>= aValue; if( aValue ) { - DebugHelper::exception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); } } else @@ -208,7 +208,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom) throw (css::uno::Ru zoom >>= pageScale; if(( pageScale < ZOOM_IN )||( pageScale > ZOOM_MAX )) { - DebugHelper::exception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); } } @@ -218,14 +218,14 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom) throw (css::uno::Ru mxPageProps->setPropertyValue("ScaleToPagesX", uno::makeAny( nScale )); mxPageProps->setPropertyValue("ScaleToPagesY", uno::makeAny( nScale )); } - catch( beans::UnknownPropertyException& ) + catch (const beans::UnknownPropertyException&) { if( pageScale == 0 ) { - DebugHelper::exception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); } } - catch( uno::Exception& ) + catch (const uno::Exception&) { } @@ -467,7 +467,7 @@ sal_Int32 SAL_CALL ScVbaPageSetup::getOrder() throw (css::uno::RuntimeException, return order; } -void SAL_CALL ScVbaPageSetup::setOrder( sal_Int32 order) throw (css::uno::RuntimeException, std::exception) +void SAL_CALL ScVbaPageSetup::setOrder(sal_Int32 order) throw (css::uno::RuntimeException, std::exception) { bool bOrder = true; switch( order ) @@ -478,14 +478,14 @@ void SAL_CALL ScVbaPageSetup::setOrder( sal_Int32 order) throw (css::uno::Runtim bOrder = false; break; default: - DebugHelper::exception(SbERR_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception(SbERR_BAD_PARAMETER, OUString() ); } try { mxPageProps->setPropertyValue("PrintDownFirst", uno::makeAny( bOrder )); } - catch( uno::Exception& ) + catch (const uno::Exception&) { } } @@ -521,7 +521,7 @@ void SAL_CALL ScVbaPageSetup::setFirstPageNumber( sal_Int32 firstPageNumber) thr aValue <<= (sal_Int16)firstPageNumber; mxPageProps->setPropertyValue("FirstPageNumber", aValue ); } - catch( uno::Exception& ) + catch (const uno::Exception&) { } } @@ -534,7 +534,7 @@ sal_Bool SAL_CALL ScVbaPageSetup::getCenterVertically() throw (css::uno::Runtime uno::Any aValue = mxPageProps->getPropertyValue("CenterVertically"); aValue >>= centerVertically; } - catch( uno::Exception& ) + catch (const uno::Exception&) { } return centerVertically; @@ -546,7 +546,7 @@ void SAL_CALL ScVbaPageSetup::setCenterVertically( sal_Bool centerVertically) th { mxPageProps->setPropertyValue("CenterVertically", uno::makeAny( centerVertically )); } - catch( uno::Exception& ) + catch (const uno::Exception&) { } } @@ -559,7 +559,7 @@ sal_Bool SAL_CALL ScVbaPageSetup::getCenterHorizontally() throw (css::uno::Runti uno::Any aValue = mxPageProps->getPropertyValue("CenterHorizontally"); aValue >>= centerHorizontally; } - catch( uno::Exception& ) + catch (const uno::Exception&) { } return centerHorizontally; @@ -571,7 +571,7 @@ void SAL_CALL ScVbaPageSetup::setCenterHorizontally( sal_Bool centerHorizontally { mxPageProps->setPropertyValue("CenterHorizontally", uno::makeAny( centerHorizontally )); } - catch( uno::Exception& ) + catch (const uno::Exception&) { } } @@ -584,7 +584,7 @@ sal_Bool SAL_CALL ScVbaPageSetup::getPrintHeadings() throw (css::uno::RuntimeExc uno::Any aValue = mxPageProps->getPropertyValue("PrintHeaders"); aValue >>= printHeadings; } - catch( uno::Exception& ) + catch (const uno::Exception&) { } return printHeadings; |