Kaydet (Commit) c226e931 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Avoid an endless stream of NoSuchElementException exceptions.

Extremely annoying during debugging; and throwing / catching is not the
fastest operation under the sun...

Change-Id: Ic5604bb1c3ef77d1577c4ac611af44be6fea6533
üst f01ce474
...@@ -1085,16 +1085,10 @@ Any ManagerImpl::getByHierarchicalName( const OUString & rName ) ...@@ -1085,16 +1085,10 @@ Any ManagerImpl::getByHierarchicalName( const OUString & rName )
for ( ProviderVector::const_iterator iPos( _aProviders.begin() ); for ( ProviderVector::const_iterator iPos( _aProviders.begin() );
iPos != _aProviders.end(); ++iPos ) iPos != _aProviders.end(); ++iPos )
{ {
try if ( (*iPos)->hasByHierarchicalName( rName ) )
{
if ((aRet = (*iPos)->getByHierarchicalName(
rName )).hasValue())
{
break;
}
}
catch (const NoSuchElementException &)
{ {
aRet = (*iPos)->getByHierarchicalName( rName );
break;
} }
} }
} }
......
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