vcl/source/bitmap/dibtools.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 0e4a404e9a352d1cdb43d448332fe930bbf654d5
Author:     Christopher Sherlock <[email protected]>
AuthorDate: Wed Dec 17 04:54:05 2025 +1100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Mon Jan 12 12:59:55 2026 +0100

    vcl: make it more clear that convertToBPP() is a local function
    
    Change-Id: Icbc5895d352ebefc1355b8e73e0586b144f3ba32
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195741
    Reviewed-by: Michael Weghorn <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/source/bitmap/dibtools.cxx b/vcl/source/bitmap/dibtools.cxx
index 154fb0760761..eff4b8dbe309 100644
--- a/vcl/source/bitmap/dibtools.cxx
+++ b/vcl/source/bitmap/dibtools.cxx
@@ -133,7 +133,7 @@ struct DIBV5Header : public DIBInfoHeader
     {}
 };
 
-vcl::PixelFormat convertToBPP(sal_uInt16 nCount)
+vcl::PixelFormat lcl_convertToBPP(sal_uInt16 nCount)
 {
     return (nCount <= 8) ? vcl::PixelFormat::N8_BPP :
                            vcl::PixelFormat::N24_BPP;
@@ -988,7 +988,7 @@ bool ImplReadDIBBody(SvStream& rIStm, Bitmap& rBmp, 
AlphaMask* pBmpAlpha, sal_uI
         pAccAlpha = aNewBmpAlpha;
     }
 
-    vcl::PixelFormat ePixelFormat(convertToBPP(aHeader.nBitCount));
+    vcl::PixelFormat ePixelFormat(lcl_convertToBPP(aHeader.nBitCount));
     const BitmapPalette* pPal = &aPalette;
     //ofz#948 match the surrounding logic of case TransparentType::Bitmap of
     //ReadDIBBitmapEx but do it while reading for performance
@@ -1275,7 +1275,7 @@ bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess 
const & rAcc, sal_uLong
         // bitmaps is relatively recent.
         // #i59239# discretize bitcount for aligned width to 1,8,24
         // (other cases are not written below)
-        const auto ePixelFormat(convertToBPP(rAcc.GetBitCount()));
+        const auto ePixelFormat(lcl_convertToBPP(rAcc.GetBitCount()));
         const sal_uLong nAlignedWidth(AlignedWidth4Bytes(rAcc.Width() * 
sal_Int32(ePixelFormat)));
         bool bNative(false);
 
@@ -1389,7 +1389,7 @@ bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& 
rOStm, BitmapReadAccess c
     // recent.
     // #i59239# discretize bitcount to 1,8,24 (other cases
     // are not written below)
-    const auto ePixelFormat(convertToBPP(rAcc.GetBitCount()));
+    const auto ePixelFormat(lcl_convertToBPP(rAcc.GetBitCount()));
     aHeader.nBitCount = sal_uInt16(ePixelFormat);
     aHeader.nSizeImage = rAcc.Height() * AlignedWidth4Bytes(rAcc.Width() * 
aHeader.nBitCount);
 

Reply via email to