From af92c600ef755d3766393b2ef7956f5ac163410c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 8 Feb 2013 11:43:21 +0000 Subject: catch exceptions by const ref Change-Id: Icaa4095b2032fa87f8ed4982940ba2a166665cef --- stoc/source/tdmanager/tdmgr.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'stoc/source') diff --git a/stoc/source/tdmanager/tdmgr.cxx b/stoc/source/tdmanager/tdmgr.cxx index b1c5976ba77c..51af243c0c62 100644 --- a/stoc/source/tdmanager/tdmgr.cxx +++ b/stoc/source/tdmanager/tdmgr.cxx @@ -314,10 +314,10 @@ void ManagerImpl::initialize( { insert( makeAny( xHA ) ); } - catch (IllegalArgumentException &) + catch (const IllegalArgumentException &) { } - catch (ElementExistException &) + catch (const ElementExistException &) { } } @@ -490,7 +490,7 @@ void SAL_CALL ManagerImpl::insert( const Any & rElement ) } } } - catch (container::NoSuchElementException &) + catch (const container::NoSuchElementException &) { // type not in: ok } @@ -1095,7 +1095,7 @@ Any ManagerImpl::getByHierarchicalName( const OUString & rName ) break; } } - catch (NoSuchElementException &) + catch (const NoSuchElementException &) { } } @@ -1121,7 +1121,7 @@ sal_Bool ManagerImpl::hasByHierarchicalName( const OUString & rName ) { return getByHierarchicalName( rName ).hasValue(); } - catch (NoSuchElementException &) + catch (const NoSuchElementException &) { } return sal_False; -- cgit