diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-02-03 16:26:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-02-03 23:38:37 +0100 |
commit | 6317e10f5b9c347ceb391e049e6d0f3c542f93c4 (patch) | |
tree | 5552a3ccc88bfbdf932735292a008271ab4360fa /canvas/source/directx/dx_bitmap.cxx | |
parent | a334f77792dfff92e3c97f7f61f59d01fc9338cf (diff) |
loplugin:makeshared (clang-cl)
Change-Id: I0c786bf401e514f9d86e33d8ab6366fc5dd1f425
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87887
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas/source/directx/dx_bitmap.cxx')
-rw-r--r-- | canvas/source/directx/dx_bitmap.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/canvas/source/directx/dx_bitmap.cxx b/canvas/source/directx/dx_bitmap.cxx index a9192e05e2dc..524e3a6fdd2d 100644 --- a/canvas/source/directx/dx_bitmap.cxx +++ b/canvas/source/directx/dx_bitmap.cxx @@ -19,6 +19,8 @@ #include <sal/config.h> +#include <memory> + #include <basegfx/matrix/b2dhommatrix.hxx> #include <basegfx/range/b2irange.hxx> #include <tools/diagnose_ex.h> @@ -56,19 +58,17 @@ namespace dxcanvas // create container for pixel data if(mbAlpha) { - mpBitmap.reset( - new Gdiplus::Bitmap( + mpBitmap = std::make_shared<Gdiplus::Bitmap>( maSize.getX(), maSize.getY(), - PixelFormat32bppARGB)); + PixelFormat32bppARGB); } else { - mpBitmap.reset( - new Gdiplus::Bitmap( + mpBitmap = std::make_shared<Gdiplus::Bitmap>( maSize.getX(), maSize.getY(), - PixelFormat24bppRGB)); + PixelFormat24bppRGB); } mpGraphics.reset( tools::createGraphicsFromBitmap(mpBitmap) ); |