summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-04-11 13:26:55 +0200
committerJan Holesovsky <kendy@suse.cz>2013-04-11 18:27:37 +0200
commitc226e93159730cc53947d271c587d3720d966546 (patch)
treefc6bf5bf950da7aad1157cebe0f3f8aec024082e
parentf01ce474c26a1931a14691ceb41adb8e09699c6d (diff)
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
-rw-r--r--stoc/source/tdmanager/tdmgr.cxx12
1 files changed, 3 insertions, 9 deletions
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;
}
}
}