diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-02-08 11:43:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-08 11:43:21 +0000 |
commit | af92c600ef755d3766393b2ef7956f5ac163410c (patch) | |
tree | ad391ce7f466d3d193973ea625a7fe00d8d0b153 /stoc | |
parent | 0aa5b4398e0bdd01315b2521fc2c827b58f49d39 (diff) |
catch exceptions by const ref
Change-Id: Icaa4095b2032fa87f8ed4982940ba2a166665cef
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/tdmanager/tdmgr.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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; |