diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-11-03 15:10:04 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-03 16:00:36 +0100 |
commit | 4284f618557992fdf12574f8fd014be76ec9fffc (patch) | |
tree | fac74828b9a4139d1f74087443c3fcc0b8a1363f /sw/source/filter/writer/writer.cxx | |
parent | f575cf3320684efe7db9844da89a5ebdb3083498 (diff) |
Simplify containers iterations in sw/source/filter
Use range-based loop or replace with STL functions.
Change-Id: Ifffb7ba08b3a9950ee076558ec4048b0788a38c8
Reviewed-on: https://gerrit.libreoffice.org/62806
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/writer/writer.cxx')
-rw-r--r-- | sw/source/filter/writer/writer.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index e0a92c344d8b..05d72841b81e 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -84,10 +84,9 @@ Writer_Impl::Writer_Impl() void Writer_Impl::RemoveFontList( SwDoc& rDoc ) { - for( std::vector<const SvxFontItem*>::const_iterator it = aFontRemoveLst.begin(); - it != aFontRemoveLst.end(); ++it ) + for( const auto& rpFontItem : aFontRemoveLst ) { - rDoc.GetAttrPool().Remove( **it ); + rDoc.GetAttrPool().Remove( *rpFontItem ); } } |