diff options
-rw-r--r-- | sc/source/ui/vba/vbahelper.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/access/accpara.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbahelper.cxx | 14 |
3 files changed, 11 insertions, 9 deletions
diff --git a/sc/source/ui/vba/vbahelper.cxx b/sc/source/ui/vba/vbahelper.cxx index adc7b2493b88..2dedc41f5639 100644 --- a/sc/source/ui/vba/vbahelper.cxx +++ b/sc/source/ui/vba/vbahelper.cxx @@ -156,7 +156,9 @@ public: { setReplaceCellsWarning( true ); } - catch ( uno::Exception& /*e*/ ){} + catch (const uno::Exception&) + { + } } } }; diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index e8ec678fe861..8496b06ff13c 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -2141,7 +2141,7 @@ sal_Bool SwAccessibleParagraph::setAttributes( { xPortion->setPropertyValues( aNames, aValues ); } - catch( UnknownPropertyException &e ) + catch (const UnknownPropertyException&) { // error handling through return code! bRet = sal_False; diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index a52ef14402b5..ebce6ff42d5c 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -187,7 +187,7 @@ dispatchRequests (const uno::Reference< frame::XModel>& xModel, const rtl::OUStr return; xParser->parseStrict (url); } - catch ( uno::Exception & /*e*/ ) + catch (const uno::Exception&) { return; } @@ -319,7 +319,7 @@ getCurrentExcelDoc( const uno::Reference< uno::XComponentContext >& xContext ) t { xModel = getCurrentDoc( sThisExcelDoc ); } - catch( uno::Exception& e ) + catch (const uno::Exception&) { xModel = getThisExcelDoc( xContext ); } @@ -335,7 +335,7 @@ getCurrentWordDoc( const uno::Reference< uno::XComponentContext >& xContext ) th { xModel = getCurrentDoc( sThisWordDoc ); } - catch( uno::Exception& e ) + catch (const uno::Exception&) { xModel = getThisWordDoc( xContext ); } @@ -759,7 +759,7 @@ sal_Int32 getPointerStyle( const uno::Reference< frame::XModel >& xModel ) if ( pWindow ) nPointerStyle = pWindow->GetSystemWindow()->GetPointer().GetStyle(); } - catch( const uno::Exception& ) + catch (const uno::Exception&) { DBG_UNHANDLED_EXCEPTION(); } @@ -1109,7 +1109,7 @@ double ShapeHelper::getHeight() const aSize.Height = Millimeter::getInHundredthsOfOneMillimeter(_fheight); xShape->setSize(aSize); } - catch ( css::uno::Exception& /*e*/) + catch (const css::uno::Exception&) { throw css::script::BasicErrorException( rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, rtl::OUString() ); } @@ -1127,7 +1127,7 @@ void ShapeHelper::setWidth(double _fWidth) throw ( css::script::BasicErrorExcept aSize.Width = Millimeter::getInHundredthsOfOneMillimeter(_fWidth); xShape->setSize(aSize); } - catch (css::uno::Exception& /*e*/) + catch (const css::uno::Exception&) { throw css::script::BasicErrorException( rtl::OUString(), css::uno::Reference< css::uno::XInterface >(), SbERR_METHOD_FAILED, rtl::OUString() ); } @@ -1248,7 +1248,7 @@ uno::Reference< XHelperInterface > getVBADocument( const uno::Reference< frame:: xDocProps->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CodeName" ) ) ) >>= aCodeName; xIf = getUnoDocModule( aCodeName, getSfxObjShell( xModel ) ); } - catch( uno::Exception& ) + catch (const uno::Exception&) { } return xIf; |