From 0ded54c33f01d18d2cd06547bd8307bd140cf28f Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Tue, 27 Nov 2018 22:17:40 +0300 Subject: Simplify containers iterations in slideshow, sot, starmath, stoc Use range-based loop or replace with STL functions Change-Id: I94792c28b283a0998bf813317e5beb37d93e0c23 Reviewed-on: https://gerrit.libreoffice.org/64125 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/qa/cppunit/test_sot.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sot/qa') diff --git a/sot/qa/cppunit/test_sot.cxx b/sot/qa/cppunit/test_sot.cxx index 57c636de0df5..06e26c806eb1 100644 --- a/sot/qa/cppunit/test_sot.cxx +++ b/sot/qa/cppunit/test_sot.cxx @@ -107,16 +107,15 @@ namespace SvStorageInfoList aInfoList; xObjStor->FillInfoList( &aInfoList ); - for( SvStorageInfoList::iterator aIt = aInfoList.begin(); - aIt != aInfoList.end(); ++aIt ) + for (auto& rInfo : aInfoList) { - if( aIt->IsStorage() ) + if( rInfo.IsStorage() ) { - tools::SvRef xChild( xObjStor->OpenSotStorage( aIt->GetName() ) ); + tools::SvRef xChild( xObjStor->OpenSotStorage( rInfo.GetName() ) ); checkStorage( xChild ); } - else if( aIt->IsStream() ) - checkStream( xObjStor, aIt->GetName(), aIt->GetSize() ); + else if( rInfo.IsStream() ) + checkStream( xObjStor, rInfo.GetName(), rInfo.GetSize() ); } return true; -- cgit