diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-05 13:27:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-06 08:35:23 +0200 |
commit | ab9b38a4064141705aa3a3de9a5d73b465ad3af3 (patch) | |
tree | 888fcc6b517c44d77e2d297c13ee84fb487dd7a7 /svtools | |
parent | 13341ffa49d58f313a05edae4f4f04c215658e9f (diff) |
use more begin()/end() for Sequence
Change-Id: I399be6b6ef7a6ce01e883569a177c0969bc29c69
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/svtxgridcontrol.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/svtools/source/uno/svtxgridcontrol.cxx b/svtools/source/uno/svtxgridcontrol.cxx index 4fc636ccc440..94eac674447b 100644 --- a/svtools/source/uno/svtxgridcontrol.cxx +++ b/svtools/source/uno/svtxgridcontrol.cxx @@ -894,18 +894,15 @@ void SVTXGridControl::impl_updateColumnsFromModel_nothrow() try { const Sequence< Reference< XGridColumn > > columns = xColumnModel->getColumns(); - for ( const Reference< XGridColumn >* colRef = columns.getConstArray(); - colRef != columns.getConstArray() + columns.getLength(); - ++colRef - ) + for ( auto const & colRef : columns ) { - if ( !colRef->is() ) + if ( !colRef.is() ) { SAL_WARN( "svtools.uno", "illegal column!" ); continue; } - m_xTableModel->appendColumn( *colRef ); + m_xTableModel->appendColumn( colRef ); } } catch( const Exception& ) |