sw/source/core/layout/atrfrm.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 653a3c259905a1d05b471423821bc83da7f9ef20 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Feb 24 17:41:24 2017 +0100 loplugin:loopvartoosmall Change-Id: Ic85a715e11bc1eac531fa23e8b4a9b6c6520b862 diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 7b16eaa..d55d6ba 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits