From 2351701d533c4b489d633b9602930be57caff801 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 23 Apr 2018 14:56:15 +0200 Subject: loplugin:useuniqueptr pass BitmapBuffer around via std::unique_ptr Change-Id: I0a20e7d3816714e42d6863fff27734dd08ae24ae Reviewed-on: https://gerrit.libreoffice.org/53357 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/inc/unx/salbmp.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vcl/inc/unx/salbmp.h') 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 + ImplCreateDIB( const Size& rSize, sal_uInt16 nBitCount, const BitmapPalette& rPal ); - static BitmapBuffer* ImplCreateDIB( + static std::unique_ptr + ImplCreateDIB( Drawable aDrawable, SalX11Screen nXScreen, long nDrawableDepth, @@ -68,7 +70,7 @@ public: private: - BitmapBuffer* mpDIB; + std::unique_ptr mpDIB; ImplSalDDB* mpDDB; bool mbGrey; -- cgit