summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-05 13:27:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 08:35:23 +0200
commitab9b38a4064141705aa3a3de9a5d73b465ad3af3 (patch)
tree888fcc6b517c44d77e2d297c13ee84fb487dd7a7 /uui
parent13341ffa49d58f313a05edae4f4f04c215658e9f (diff)
use more begin()/end() for Sequence
Change-Id: I399be6b6ef7a6ce01e883569a177c0969bc29c69
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 0d742684bb73..e7938b121db2 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -352,25 +352,21 @@ bool UUIInteractionHelper::handleTypedHandlerImplementations( Reference< XIntera
// loop through all registered implementations
const Sequence< OUString > aRegisteredHandlers( aConfigRoot.getNodeNames() );
- const OUString* pHandlerName = aRegisteredHandlers.getConstArray();
- const OUString* pHandlersEnd = aRegisteredHandlers.getConstArray() + aRegisteredHandlers.getLength();
- for ( ; pHandlerName != pHandlersEnd; ++pHandlerName )
+ for ( auto const & handlerName : aRegisteredHandlers )
{
- const ::utl::OConfigurationNode aHandlerNode( aConfigRoot.openNode( *pHandlerName ) );
+ const ::utl::OConfigurationNode aHandlerNode( aConfigRoot.openNode( handlerName ) );
const ::utl::OConfigurationNode aTypesNode( aHandlerNode.openNode( "HandledRequestTypes" ) );
// loop through all the types which the current handler is registered for
const Sequence< OUString > aHandledTypes( aTypesNode.getNodeNames() );
- const OUString* pType = aHandledTypes.getConstArray();
- const OUString* pTypesEnd = aHandledTypes.getConstArray() + aHandledTypes.getLength();
- for ( ; pType != pTypesEnd; ++pType )
+ for ( auto const & type : aHandledTypes )
{
// the UNO type is the node name
- ::utl::OConfigurationNode aType( aTypesNode.openNode( *pType ) );
+ ::utl::OConfigurationNode aType( aTypesNode.openNode( type ) );
// and there's a child denoting how the responsibility propagates
OUString sPropagation;
OSL_VERIFY( aType.getNodeValue( "Propagation" ) >>= sPropagation );
- if ( lcl_matchesRequest( aRequest, *pType, sPropagation ) )
+ if ( lcl_matchesRequest( aRequest, type, sPropagation ) )
{
// retrieve the service/implementation name of the handler
OUString sServiceName;