summaryrefslogtreecommitdiff
path: root/include/vcl/bitmap.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-15 12:43:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-15 14:33:52 +0100
commit52fece12345161911da2a531213b7d5541192aad (patch)
treefd27e700dc56ca5293e88746dbeed7cc08a57f3a /include/vcl/bitmap.hxx
parent0a76eb059a77c799e6ce8400c558fc4dd1d866aa (diff)
tweak GetBitmap methods in BitmapEx
so we return a const& for the normal case, just like other methods, which reduces copying. This revealed that CreateDisplayBitmap in Bitmap can be const. Change-Id: I9f9b9ff0c52d7e95eaae62af152218be8847dd63 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86836 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/bitmap.hxx')
-rw-r--r--include/vcl/bitmap.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index 329a40ec6ef1..2b97bded06d1 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -145,7 +145,7 @@ public:
BitmapChecksum GetChecksum() const;
- Bitmap CreateDisplayBitmap( OutputDevice* pDisplay );
+ Bitmap CreateDisplayBitmap( OutputDevice* pDisplay ) const;
static const BitmapPalette&
GetGreyPalette( int nEntries );