summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
Diffstat (limited to 'stoc')
-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;
}
}
}