diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 17:21:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-14 17:21:20 +0000 |
commit | 0b3766645d7d52d5c2022b1e8e4617eff06403c8 (patch) | |
tree | 75ebc8e0ab319b10851517e7974fabfb7f8ba5c9 | |
parent | 7a71065b8715f09892ef643d6e75550782e116d4 (diff) |
more catch by reference
Change-Id: I2db9f94a517f814ef0854190e6f1194501070409
-rw-r--r-- | sd/source/ui/accessibility/AccessibleDrawDocumentView.cxx | 6 | ||||
-rw-r--r-- | svx/source/fmcomp/dbaobjectex.cxx | 2 | ||||
-rw-r--r-- | 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<XAccessible> AccessibleDrawDocumentView::GetSelAccContextInTable( } } } - catch ( lang::IndexOutOfBoundsException ) + catch (const lang::IndexOutOfBoundsException&) { uno::Reference<XAccessible> xEmpty; return xEmpty; } - catch ( uno::RuntimeException ) + catch (const uno::RuntimeException&) { uno::Reference<XAccessible> 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 } |