summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-24 17:41:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-24 17:41:52 +0100
commit653a3c259905a1d05b471423821bc83da7f9ef20 (patch)
treea8bf49f38965e5c67ae5022bca3d99f6c0b3c623 /sw
parent685767dbe7dc6677eaee8edf3c9f94105705fafa (diff)
loplugin:loopvartoosmall
Change-Id: Ic85a715e11bc1eac531fa23e8b4a9b6c6520b862
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/atrfrm.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 7b16eaaee4ff..d55d6ba781e6 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -1020,9 +1020,8 @@ void SwFormatCol::Calc( sal_uInt16 nGutterWidth, sal_uInt16 nAct )
rLastCol.SetRight(0);
//Convert the current width to the requested width.
- for (sal_uInt16 i = 0; i < m_aColumns.size(); ++i)
+ for (SwColumn &rCol: m_aColumns)
{
- SwColumn &rCol = m_aColumns[i];
long nTmp = rCol.GetWishWidth();
nTmp *= GetWishWidth();
nTmp /= nAct;