summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-05 13:27:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 08:35:23 +0200
commitab9b38a4064141705aa3a3de9a5d73b465ad3af3 (patch)
tree888fcc6b517c44d77e2d297c13ee84fb487dd7a7 /basctl
parent13341ffa49d58f313a05edae4f4f04c215658e9f (diff)
use more begin()/end() for Sequence
Change-Id: I399be6b6ef7a6ce01e883569a177c0969bc29c69
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/documentenumeration.cxx11
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;