Kaydet (Commit) af92c600 authored tarafından Caolán McNamara's avatar Caolán McNamara

catch exceptions by const ref

Change-Id: Icaa4095b2032fa87f8ed4982940ba2a166665cef
üst 0aa5b439
...@@ -314,10 +314,10 @@ void ManagerImpl::initialize( ...@@ -314,10 +314,10 @@ void ManagerImpl::initialize(
{ {
insert( makeAny( xHA ) ); 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 ) ...@@ -490,7 +490,7 @@ void SAL_CALL ManagerImpl::insert( const Any & rElement )
} }
} }
} }
catch (container::NoSuchElementException &) catch (const container::NoSuchElementException &)
{ {
// type not in: ok // type not in: ok
} }
...@@ -1095,7 +1095,7 @@ Any ManagerImpl::getByHierarchicalName( const OUString & rName ) ...@@ -1095,7 +1095,7 @@ Any ManagerImpl::getByHierarchicalName( const OUString & rName )
break; break;
} }
} }
catch (NoSuchElementException &) catch (const NoSuchElementException &)
{ {
} }
} }
...@@ -1121,7 +1121,7 @@ sal_Bool ManagerImpl::hasByHierarchicalName( const OUString & rName ) ...@@ -1121,7 +1121,7 @@ sal_Bool ManagerImpl::hasByHierarchicalName( const OUString & rName )
{ {
return getByHierarchicalName( rName ).hasValue(); return getByHierarchicalName( rName ).hasValue();
} }
catch (NoSuchElementException &) catch (const NoSuchElementException &)
{ {
} }
return sal_False; return sal_False;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment