summaryrefslogtreecommitdiff
path: root/vcl/source/image
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 09:32:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-18 20:10:57 +0200
commit31f04378dbc07d4367dc3b66163aaed171cf0323 (patch)
tree803e8caa6fa9cecdab5e1a0047fbd334fd2ab1ee /vcl/source/image
parent2836b78b54650d117282a9a345677d1b4d9fc043 (diff)
loplugin:passstuffbyref
Change-Id: Icb7c22cf4ac95eab54d04e79312fb471ca27bceb Reviewed-on: https://gerrit.libreoffice.org/74246 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/image')
-rw-r--r--vcl/source/image/ImplImage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/image/ImplImage.cxx b/vcl/source/image/ImplImage.cxx
index 7605f88d9767..2658aac303b7 100644
--- a/vcl/source/image/ImplImage.cxx
+++ b/vcl/source/image/ImplImage.cxx
@@ -93,7 +93,7 @@ Size ImplImage::getSizePixel()
}
/// non-HiDPI compatibility method.
-BitmapEx ImplImage::getBitmapEx(bool bDisabled)
+BitmapEx const & ImplImage::getBitmapEx(bool bDisabled)
{
getSizePixel(); // force load, and at unity scale.
if (bDisabled)
@@ -123,7 +123,7 @@ bool ImplImage::isEqual(const ImplImage &ref) const
return maBitmapEx == ref.maBitmapEx;
}
-BitmapEx ImplImage::getBitmapExForHiDPI(bool bDisabled)
+BitmapEx const & ImplImage::getBitmapExForHiDPI(bool bDisabled)
{
if (isStock())
{ // check we have the right bitmap cached.