summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/viewlayoutctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-11 09:53:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-12 07:12:44 +0000
commitb415494bf0468b74318b61f114e2ff4ae68c00ee (patch)
tree432f9397ecf4c410e4e9767f433c60e4dc0b0087 /sw/source/uibase/utlui/viewlayoutctrl.cxx
parent875984617cfd6c773eb93f339929eb3fabd3e97b (diff)
clang-tidy modernize-loop-convert in sw
Change-Id: I1f4a0ad6658bd3154c48940296aa8edc1ea1612c Reviewed-on: https://gerrit.libreoffice.org/24876 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/utlui/viewlayoutctrl.cxx')
-rw-r--r--sw/source/uibase/utlui/viewlayoutctrl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/utlui/viewlayoutctrl.cxx b/sw/source/uibase/utlui/viewlayoutctrl.cxx
index 3721c9727ec6..0531e0432f8e 100644
--- a/sw/source/uibase/utlui/viewlayoutctrl.cxx
+++ b/sw/source/uibase/utlui/viewlayoutctrl.cxx
@@ -59,11 +59,11 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId,
mpImpl->maImageAutomatic, mpImpl->maImageAutomatic_Active,
mpImpl->maImageBookMode, mpImpl->maImageBookMode_Active};
- for (int i = 0; i < 6; i++)
+ for (Image & i : arr)
{
- BitmapEx aBitmap = arr[i].GetBitmapEx();
+ BitmapEx aBitmap = i.GetBitmapEx();
aBitmap.Scale(nScaleFactor, nScaleFactor, BmpScaleFlag::Fast);
- arr[i] = Image(aBitmap);
+ i = Image(aBitmap);
}
mpImpl->maImageSingleColumn = arr[0];