diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-05 08:06:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-05 10:47:47 +0100 |
commit | a8cd98c437f2c3b5c4f7c139aa7223c5cfb74d1a (patch) | |
tree | c14b1574ecee988c0d0800d0a080f0e69bf01e3b /include/vcl | |
parent | 5796b4f90bfb7394ca89530cd67f6cf23e1ac693 (diff) |
use o3tl::optional instead of pointer
Change-Id: I71084d668829fdaaf383319697d71b4299f9afea
Reviewed-on: https://gerrit.libreoffice.org/84500
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/bitmapex.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/bitmapex.hxx b/include/vcl/bitmapex.hxx index dd5c715c01b3..2f98362a9e4e 100644 --- a/include/vcl/bitmapex.hxx +++ b/include/vcl/bitmapex.hxx @@ -20,6 +20,7 @@ #ifndef INCLUDED_VCL_BITMAPEX_HXX #define INCLUDED_VCL_BITMAPEX_HXX +#include <o3tl/optional.hxx> #include <vcl/dllapi.h> #include <vcl/alpha.hxx> #include <vcl/Scanline.hxx> @@ -72,7 +73,7 @@ public: bool IsTransparent() const; TransparentType GetTransparentType() const { return meTransparent; } - Bitmap GetBitmap( const Color* pTransReplaceColor = nullptr ) const; + Bitmap GetBitmap( o3tl::optional<Color> xTransparentReplaceColor = o3tl::optional<Color>() ) const; /// Gives direct access to the contained bitmap. const Bitmap& GetBitmapRef() const; Bitmap GetMask() const; |