From 0b3766645d7d52d5c2022b1e8e4617eff06403c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 14 Nov 2014 17:21:20 +0000 Subject: [PATCH] more catch by reference Change-Id: I2db9f94a517f814ef0854190e6f1194501070409 --- sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx | 6 +++--- svx/source/fmcomp/dbaobjectex.cxx | 2 +- xmloff/source/text/txtfldi.cxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx index 3cd301cc12dd..26210719b73b 100644 --- a/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx +++ b/sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx @@ -979,12 +979,12 @@ uno::Reference AccessibleDrawDocumentView::GetSelAccContextInTable( } } } - catch ( lang::IndexOutOfBoundsException ) + catch (const lang::IndexOutOfBoundsException&) { uno::Reference xEmpty; return xEmpty; } - catch ( uno::RuntimeException ) + catch (const uno::RuntimeException&) { uno::Reference xEmpty; return xEmpty; @@ -1014,7 +1014,7 @@ void AccessibleDrawDocumentView::UpdateAccessibleName (void) sNewName += OUString::number(nPageNumber); } } - catch (beans::UnknownPropertyException&) + catch (const beans::UnknownPropertyException&) { } } diff --git a/svx/source/fmcomp/dbaobjectex.cxx b/svx/source/fmcomp/dbaobjectex.cxx index c327c751bb72..d43184e5c4e9 100644 --- a/svx/source/fmcomp/dbaobjectex.cxx +++ b/svx/source/fmcomp/dbaobjectex.cxx @@ -80,7 +80,7 @@ namespace svx if ( xProp.is() ) xProp->getPropertyValue("IsForm") >>= bForm; } - catch(Exception) + catch(const Exception&) {} AddFormat(getDescriptorFormatId(bForm)); } diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index b456ae6d1dfa..93e1d81513ed 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -3765,7 +3765,7 @@ void XMLAnnotationImportContext::EndElement() { GetImportHelper().InsertTextContent( xTextContent ); } - catch (lang::IllegalArgumentException) + catch (const lang::IllegalArgumentException&) { // ignore }