From c226e93159730cc53947d271c587d3720d966546 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 11 Apr 2013 13:26:55 +0200 Subject: 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 --- stoc/source/tdmanager/tdmgr.cxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'stoc/source') diff --git a/stoc/source/tdmanager/tdmgr.cxx b/stoc/source/tdmanager/tdmgr.cxx index 2ac14838d434..f8904c97fa8a 100644 --- a/stoc/source/tdmanager/tdmgr.cxx +++ b/stoc/source/tdmanager/tdmgr.cxx @@ -1085,16 +1085,10 @@ Any ManagerImpl::getByHierarchicalName( const OUString & rName ) for ( ProviderVector::const_iterator iPos( _aProviders.begin() ); iPos != _aProviders.end(); ++iPos ) { - try - { - if ((aRet = (*iPos)->getByHierarchicalName( - rName )).hasValue()) - { - break; - } - } - catch (const NoSuchElementException &) + if ( (*iPos)->hasByHierarchicalName( rName ) ) { + aRet = (*iPos)->getByHierarchicalName( rName ); + break; } } } -- cgit