svx/source/table/tableautofmtpreview.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b683ddb32282e4e3c787b1e92ea1b5e6322fe45d
Author:     madhura <[email protected]>
AuthorDate: Fri Feb 20 09:21:54 2026 +0000
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Fri Feb 20 16:34:42 2026 +0100

    tdf#114441 Convert sal_uLong to sal_uInt8 in tableautofmtpreview.cxx
    
    nNum is only used as a small field index and is later cast to sal_uInt8.
    Since all assigned values are within 8-bit range,replace sal_uLong with 
sal_uInt8 and remove unnecessary cast.
    
    Change-Id: I70e2cc246f4781f4e80d946ab1859063b27e5d2b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199823
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <[email protected]>

diff --git a/svx/source/table/tableautofmtpreview.cxx 
b/svx/source/table/tableautofmtpreview.cxx
index bd113df5cd56..d582c77d7a50 100644
--- a/svx/source/table/tableautofmtpreview.cxx
+++ b/svx/source/table/tableautofmtpreview.cxx
@@ -194,7 +194,7 @@ void SvxAutoFmtPreview::DrawString(vcl::RenderContext& 
rRenderContext, size_t nC
         return;
 
     // Output of the cell text:
-    sal_uLong nNum;
+    sal_uInt8 nNum;
     double nVal;
     OUString cellString;
     sal_uInt8 nIndex = static_cast<sal_uInt8>(maArray.GetCellIndex(nCol, nRow, 
mbRTL));
@@ -275,7 +275,7 @@ void SvxAutoFmtPreview::DrawString(vcl::RenderContext& 
rRenderContext, size_t nC
             {
                 OUString sFormat;
                 LanguageType eLng, eSys;
-                
mpCurrentData->GetField(sal_uInt8(nNum))->GetValueFormat(sFormat, eLng, eSys);
+                mpCurrentData->GetField(nNum)->GetValueFormat(sFormat, eLng, 
eSys);
 
                 SvNumFormatType nType;
                 bool bNew;

Reply via email to