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/ww8/WW8FFData.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/ww8/WW8FFData.cxx')
-rw-r--r-- | sw/source/filter/ww8/WW8FFData.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sw/source/filter/ww8/WW8FFData.cxx b/sw/source/filter/ww8/WW8FFData.cxx index 8a2392d643ab..7b5c4efb7467 100644 --- a/sw/source/filter/ww8/WW8FFData.cxx +++ b/sw/source/filter/ww8/WW8FFData.cxx @@ -146,15 +146,8 @@ void WW8FFData::Write(SvStream * pDataStrm) sal_uInt32 nListboxEntries = msListEntries.size(); pDataStrm->WriteUInt32( nListboxEntries ); - std::vector< OUString >::const_iterator aIt = msListEntries.begin(); - - while (aIt != msListEntries.end()) - { - const OUString & rEntry = *aIt; + for (const OUString & rEntry : msListEntries) WriteOUString(pDataStrm, rEntry, false); - - ++aIt; - } } SwWW8Writer::WriteLong( *pDataStrm, nDataStt, |