diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-23 14:56:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-25 10:24:25 +0200 |
commit | 2351701d533c4b489d633b9602930be57caff801 (patch) | |
tree | a5eea9c0614be792a9bb29099d3a0147e02b28df /vcl/inc/unx/salbmp.h | |
parent | 7c9d8afd913c17100aa4185e3b044137f225c81f (diff) |
loplugin:useuniqueptr pass BitmapBuffer around via std::unique_ptr
Change-Id: I0a20e7d3816714e42d6863fff27734dd08ae24ae
Reviewed-on: https://gerrit.libreoffice.org/53357
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/unx/salbmp.h')
-rw-r--r-- | vcl/inc/unx/salbmp.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/inc/unx/salbmp.h b/vcl/inc/unx/salbmp.h index 3f45cd5d853c..8e1b7d5a6bf6 100644 --- a/vcl/inc/unx/salbmp.h +++ b/vcl/inc/unx/salbmp.h @@ -40,13 +40,15 @@ class VCLPLUG_GEN_PUBLIC X11SalBitmap : public SalBitmap { private: - static BitmapBuffer* ImplCreateDIB( + static std::unique_ptr<BitmapBuffer> + ImplCreateDIB( const Size& rSize, sal_uInt16 nBitCount, const BitmapPalette& rPal ); - static BitmapBuffer* ImplCreateDIB( + static std::unique_ptr<BitmapBuffer> + ImplCreateDIB( Drawable aDrawable, SalX11Screen nXScreen, long nDrawableDepth, @@ -68,7 +70,7 @@ public: private: - BitmapBuffer* mpDIB; + std::unique_ptr<BitmapBuffer> mpDIB; ImplSalDDB* mpDDB; bool mbGrey; |