summaryrefslogtreecommitdiff
path: root/vcl/source/control/imgctrl.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/control/imgctrl.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/control/imgctrl.cxx')
-rw-r--r--vcl/source/control/imgctrl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/imgctrl.cxx b/vcl/source/control/imgctrl.cxx
index 414824b29d82..5e7c95dab374 100644
--- a/vcl/source/control/imgctrl.cxx
+++ b/vcl/source/control/imgctrl.cxx
@@ -89,19 +89,19 @@ void ImageControl::ImplDraw(OutputDevice& rDev, const Point& rPos, const Size& r
return;
}
- const Size& rBitmapSize = rImage.GetSizePixel();
+ const Size aBitmapSize = rImage.GetSizePixel();
switch ( mnScaleMode )
{
case ImageScaleMode::NONE:
{
- rDev.DrawImage(lcl_centerWithin( aDrawRect, rBitmapSize ), rImage, nStyle);
+ rDev.DrawImage(lcl_centerWithin( aDrawRect, aBitmapSize ), rImage, nStyle);
}
break;
case ImageScaleMode::ISOTROPIC:
{
- const Size aPaintSize = lcl_calcPaintSize( aDrawRect, rBitmapSize );
+ const Size aPaintSize = lcl_calcPaintSize( aDrawRect, aBitmapSize );
rDev.DrawImage(lcl_centerWithin(aDrawRect, aPaintSize), aPaintSize, rImage, nStyle);
}
break;