diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-10-27 19:50:00 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-30 07:52:11 +0100 |
commit | 16b2b4f27acb83fc651b8484dead53ebd0e269e1 (patch) | |
tree | 04bc6e6b39ba22fdc13942008434d97495c88635 /sw/source/ui/vba/vbarevisions.cxx | |
parent | 922c4a61ca21848777703a28abfd442dd0b4a858 (diff) |
Simplify containers iterations in sw/source/ui*
Use range-based loop or replace with STL functions.
Change-Id: I0d690e873f720a68f04991674ce84ec590231fd0
Reviewed-on: https://gerrit.libreoffice.org/62432
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/vba/vbarevisions.cxx')
-rw-r--r-- | sw/source/ui/vba/vbarevisions.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/ui/vba/vbarevisions.cxx b/sw/source/ui/vba/vbarevisions.cxx index 661413f1ed20..223e523c1c56 100644 --- a/sw/source/ui/vba/vbarevisions.cxx +++ b/sw/source/ui/vba/vbarevisions.cxx @@ -146,12 +146,8 @@ void SAL_CALL SwVbaRevisions::AcceptAll( ) aRevisions.push_back( xRevision ); } - std::vector< uno::Reference< word::XRevision > >::iterator it = aRevisions.begin(); - for( ; it != aRevisions.end(); ++it ) - { - uno::Reference< word::XRevision > xRevision( *it ); + for( const auto& xRevision : aRevisions ) xRevision->Accept(); - } } void SAL_CALL SwVbaRevisions::RejectAll( ) |