diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-11-27 22:17:40 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-29 12:06:44 +0100 |
commit | 0ded54c33f01d18d2cd06547bd8307bd140cf28f (patch) | |
tree | e250a9a8bb89b2042d9a0bc09f80bf65757eec19 /sot/qa/cppunit/test_sot.cxx | |
parent | 7d311ea864e7cfeb1c8f4ca417911db20d13361e (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot/qa/cppunit/test_sot.cxx')
-rw-r--r-- | sot/qa/cppunit/test_sot.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
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<SotStorage> xChild( xObjStor->OpenSotStorage( aIt->GetName() ) ); + tools::SvRef<SotStorage> 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; |