summaryrefslogtreecommitdiff
path: root/vcl/source/bitmap/bitmap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-12 21:03:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-13 07:44:10 +0100
commit83b62f2f6675c68d6b22f3f23f20243c1fd906a3 (patch)
treee718a3fae0f90f435bddafac830408609e50f2f7 /vcl/source/bitmap/bitmap.cxx
parenta34d9e36193821fdbc8fb7d6b3527daf076b2069 (diff)
loplugin:reftotemp in vcl
Change-Id: Ia5b0fd303f5a3b2c4c119f431517cc063070f4a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176501 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/bitmap/bitmap.cxx')
-rw-r--r--vcl/source/bitmap/bitmap.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx
index 33f44d967e81..187541328753 100644
--- a/vcl/source/bitmap/bitmap.cxx
+++ b/vcl/source/bitmap/bitmap.cxx
@@ -1360,10 +1360,10 @@ static void shiftColors(sal_Int32* pColorArray, const BitmapScopedReadAccess& pR
Scanline pScanlineRead = pReadAcc->GetScanline(0); // Why always 0?
for (tools::Long n = 0; n < pReadAcc->Width(); ++n)
{
- const BitmapColor& rColor = pReadAcc->GetColorFromData(pScanlineRead, n);
- *pColorArray++ = static_cast<sal_Int32>(rColor.GetBlue()) << 12;
- *pColorArray++ = static_cast<sal_Int32>(rColor.GetGreen()) << 12;
- *pColorArray++ = static_cast<sal_Int32>(rColor.GetRed()) << 12;
+ const BitmapColor aColor = pReadAcc->GetColorFromData(pScanlineRead, n);
+ *pColorArray++ = static_cast<sal_Int32>(aColor.GetBlue()) << 12;
+ *pColorArray++ = static_cast<sal_Int32>(aColor.GetGreen()) << 12;
+ *pColorArray++ = static_cast<sal_Int32>(aColor.GetRed()) << 12;
}
}