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 --- fpicker/source/office/OfficeControlAccess.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'fpicker/source') diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx index 9f2f0f70813d..9445a47feef4 100644 --- a/fpicker/source/office/OfficeControlAccess.cxx +++ b/fpicker/source/office/OfficeControlAccess.cxx @@ -607,14 +607,9 @@ namespace svt static_cast< ListBox* >( _pControl )->Clear(); // add the new ones - const OUString* pItems = aItems.getConstArray(); - const OUString* pItemsEnd = aItems.getConstArray() + aItems.getLength(); - for ( const OUString* pItem = pItems; - pItem != pItemsEnd; - ++pItem - ) + for ( auto const & item : aItems ) { - static_cast< ListBox* >( _pControl )->InsertEntry( *pItem ); + static_cast< ListBox* >( _pControl )->InsertEntry( item ); } } -- cgit