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

New commits:
commit 465e66be927fa186d1cc2ffaf25ebccdfd9862d9
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Apr 13 19:03:36 2023 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Apr 13 20:52:53 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>

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