sw/source/core/text/porfly.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 83fe224f0f5fd4a4516ce3f282d0cfb55f2ea8fe
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Apr 13 19:03:36 2023 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Apr 17 14:16:12 2023 +0200

    sal_uInt16 is not a good choice to store SwTwips
    
    The latter is tools::Long, which is even 64-bit on most platforms.
    Just use auto here.
    
    Change-Id: I5b45220b79cd4798bafdb416ad7a44eb4d5d1f99
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150320
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    (cherry picked from commit 465e66be927fa186d1cc2ffaf25ebccdfd9862d9)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150494
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/source/core/text/porfly.cxx b/sw/source/core/text/porfly.cxx
index 9abef0c83c26..7bee98d9821a 100644
--- a/sw/source/core/text/porfly.cxx
+++ b/sw/source/core/text/porfly.cxx
@@ -109,7 +109,7 @@ bool SwFlyCntPortion::Format( SwTextFormatInfo &rInf )
         // KerningPortions at beginning of line, e.g., for grid layout
         // must be considered.
         const SwLinePortion* pLastPor = rInf.GetLast();
-        const sal_uInt16 nLeft = ( pLastPor &&
+        const auto nLeft = ( pLastPor &&
                                     ( pLastPor->IsKernPortion() ||
                                       pLastPor->IsErgoSumPortion() ) ) ?
                                pLastPor->Width() :

Reply via email to