vcl/source/outdev/bitmap.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 157a0d5d8465b9227ea14b065df145ca6b93e414
Author:     Christopher Sherlock <chris.sherloc...@gmail.com>
AuthorDate: Sat Aug 2 15:30:54 2025 +1000
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Aug 3 19:52:17 2025 +0200

    vcl: assign after declaration of BitmapColor
    
    Change-Id: If851792eaf12ba08d30cbc7fe529d2a81aeac64b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188796
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx
index ae6a9e428b4e..c563ab960fc3 100644
--- a/vcl/source/outdev/bitmap.cxx
+++ b/vcl/source/outdev/bitmap.cxx
@@ -428,9 +428,8 @@ BitmapColor lcl_AlphaBlend(int nX, int nY,
                                BitmapReadAccess const *  pA,
                                BitmapReadAccess const *  pB)
 {
-    BitmapColor aDstCol,aSrcCol;
-    aSrcCol = pP->GetColor( nMapY, nMapX );
-    aDstCol = pB->GetColor( nY, nX );
+    BitmapColor aSrcCol = pP->GetColor(nMapY, nMapX);
+    BitmapColor aDstCol = pB->GetColor(nY, nX);
 
     const sal_uInt8 nSrcAlpha = pA->GetPixelIndex( nMapY, nMapX );
     const sal_uInt8 nDstAlpha = aDstCol.GetAlpha();

Reply via email to