summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/wrtw8sty.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-11-03 15:10:04 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-03 16:00:36 +0100
commit4284f618557992fdf12574f8fd014be76ec9fffc (patch)
treefac74828b9a4139d1f74087443c3fcc0b8a1363f /sw/source/filter/ww8/wrtw8sty.cxx
parentf575cf3320684efe7db9844da89a5ebdb3083498 (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/ww8/wrtw8sty.cxx')
-rw-r--r--sw/source/filter/ww8/wrtw8sty.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx
index ca1ae82deee6..09740c9eb718 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -953,10 +953,9 @@ void WW8_WrPlc0::Append( sal_uLong nStartCpOrFc )
void WW8_WrPlc0::Write( SvStream& rStrm )
{
- std::vector<sal_uLong>::const_iterator iter;
- for( iter = aPos.begin(); iter != aPos.end(); ++iter )
+ for( const auto& rPos : aPos )
{
- rStrm.WriteUInt32(*iter);
+ rStrm.WriteUInt32(rPos);
}
}
@@ -1258,10 +1257,9 @@ void MSWordSections::CheckForFacinPg( WW8Export& rWrt ) const
// 2 values getting set
// Dop.fFacingPages == Header and Footer different
// Dop.fSwapBordersFacingPgs == mirrored borders
- std::vector<WW8_SepInfo>::const_iterator iter = aSects.begin();
- for( sal_uInt16 nEnde = 0; iter != aSects.end(); ++iter )
+ sal_uInt16 nEnde = 0;
+ for( const WW8_SepInfo& rSepInfo : aSects )
{
- const WW8_SepInfo& rSepInfo = *iter;
if( !rSepInfo.pSectionFormat )
{
const SwPageDesc* pPd = rSepInfo.pPageDesc;