diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-12-22 19:54:56 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-25 18:36:29 +0100 |
commit | 48b35ed43db87d21a943e66cfa4f59213dcfe3a1 (patch) | |
tree | 1352839eee90888fa987baec1887b4d3f5414cc5 /sc/source/ui/view/output2.cxx | |
parent | 68259f3663ba61a5f15f04793ac32a200100a8a5 (diff) |
Simplify containers iterations in sc/source/ui/{view,xmlsource}
Use range-based loop or replace with STL functions
Change-Id: I5604325cd25c099d3b5580956417620f298faa1e
Reviewed-on: https://gerrit.libreoffice.org/65572
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/output2.cxx')
-rw-r--r-- | sc/source/ui/view/output2.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index 9a1652834d9c..808aae367f94 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -2186,9 +2186,8 @@ static void lcl_ScaleFonts( EditEngine& rEngine, long nPercent ) rEngine.GetPortions( nPar, aPortions ); sal_Int32 nStart = 0; - for ( std::vector<sal_Int32>::const_iterator it(aPortions.begin()); it != aPortions.end(); ++it ) + for ( const sal_Int32 nEnd : aPortions ) { - sal_Int32 nEnd = *it; ESelection aSel( nPar, nStart, nPar, nEnd ); SfxItemSet aAttribs = rEngine.GetAttribs( aSel ); |