diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-24 17:41:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-24 17:41:52 +0100 |
commit | 653a3c259905a1d05b471423821bc83da7f9ef20 (patch) | |
tree | a8bf49f38965e5c67ae5022bca3d99f6c0b3c623 /sw | |
parent | 685767dbe7dc6677eaee8edf3c9f94105705fafa (diff) |
loplugin:loopvartoosmall
Change-Id: Ic85a715e11bc1eac531fa23e8b4a9b6c6520b862
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/atrfrm.cxx | 3 |
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; |