diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/documentenumeration.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/basctl/source/basicide/documentenumeration.cxx b/basctl/source/basicide/documentenumeration.cxx index 224189d5e678..70894659b6c5 100644 --- a/basctl/source/basicide/documentenumeration.cxx +++ b/basctl/source/basicide/documentenumeration.cxx @@ -107,17 +107,14 @@ namespace basctl { namespace docs { // ensure we don't encounter some models multiple times std::set< Reference< XModel >, ::comphelper::OInterfaceCompare< XModel > > aEncounteredModels; - for ( const Reference< XFrame >* pFrame = _rFrames.getConstArray(); - pFrame != _rFrames.getConstArray() + _rFrames.getLength(); - ++pFrame - ) + for ( auto const & rFrame : _rFrames ) { try { - OSL_ENSURE( pFrame->is(), "lcl_getDocuments_nothrow: illegal frame!" ); - if ( !pFrame->is() ) + OSL_ENSURE( rFrame.is(), "lcl_getDocuments_nothrow: illegal frame!" ); + if ( !rFrame.is() ) continue; - Reference< XController > xController( (*pFrame)->getController() ); + Reference< XController > xController( rFrame->getController() ); if ( !xController.is() ) continue; |