From ab9b38a4064141705aa3a3de9a5d73b465ad3af3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 5 Jul 2017 13:27:30 +0200 Subject: use more begin()/end() for Sequence Change-Id: I399be6b6ef7a6ce01e883569a177c0969bc29c69 --- sc/source/ui/unoobj/cellvaluebinding.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/unoobj/cellvaluebinding.cxx b/sc/source/ui/unoobj/cellvaluebinding.cxx index dc010291fa64..19a6b01961bc 100644 --- a/sc/source/ui/unoobj/cellvaluebinding.cxx +++ b/sc/source/ui/unoobj/cellvaluebinding.cxx @@ -161,10 +161,8 @@ namespace calc // look up in our sequence Sequence< Type > aSupportedTypes( getSupportedValueTypes() ); - const Type* pTypes = aSupportedTypes.getConstArray(); - const Type* pTypesEnd = aSupportedTypes.getConstArray() + aSupportedTypes.getLength(); - while ( pTypes != pTypesEnd ) - if ( aType.equals( *pTypes++ ) ) + for ( auto const & i : aSupportedTypes ) + if ( aType == i ) return true; return false; -- cgit