summaryrefslogtreecommitdiff
path: root/sot/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sot/qa')
-rw-r--r--sot/qa/cppunit/test_sot.cxx11
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;