summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-10-22 15:39:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-22 19:31:28 +0200
commit686b968ec3565c004d2d3e47dcf1370158b3dd90 (patch)
tree28daa385d02234c9b9b2679d5f39add9fc96d23a /vcl/source/gdi
parentee4554b0ac88f673ac9998e317fb02dc5342de80 (diff)
pass by reference for ShouldDownscaleIconsAtSurface
because the param is never null Change-Id: I58660a9e4e6c25def2a70099bffce322b477b702 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175415 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/salgdilayout.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index 2654b211a2ac..14dd62104fe3 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -917,10 +917,9 @@ OUString SalGraphics::getRenderBackendName() const
return OUString();
}
-bool SalGraphics::ShouldDownscaleIconsAtSurface(double* pScaleOut) const
+bool SalGraphics::ShouldDownscaleIconsAtSurface(double& rScaleOut) const
{
- if (pScaleOut)
- *pScaleOut = comphelper::LibreOfficeKit::getDPIScale();
+ rScaleOut = comphelper::LibreOfficeKit::getDPIScale();
return comphelper::LibreOfficeKit::isActive();
}