diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-21 20:03:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-22 08:08:27 +0100 |
commit | 21d76782b39cf83130985d27138f61308f572151 (patch) | |
tree | 8b5250e037a834eb6ad14271089985105c5ec42d /drawinglayer/source/tools/wmfemfhelper.cxx | |
parent | Update trendline dlg according to UX mockup (diff) | |
download | core-21d76782b39cf83130985d27138f61308f572151.tar.gz core-21d76782b39cf83130985d27138f61308f572151.zip |
loplugin:refcounting in drawinglayer
Change-Id: Ia7bf3a4811a47180ce2a92852a01b613ff16279a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111288
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/tools/wmfemfhelper.cxx')
-rw-r--r-- | drawinglayer/source/tools/wmfemfhelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/tools/wmfemfhelper.cxx b/drawinglayer/source/tools/wmfemfhelper.cxx index f287e2a4e23c..2d600f2e7681 100644 --- a/drawinglayer/source/tools/wmfemfhelper.cxx +++ b/drawinglayer/source/tools/wmfemfhelper.cxx @@ -1024,7 +1024,7 @@ namespace wmfemfhelper aWallpaperRange = vcl::unotools::b2DRectangleFromRectangle(rWallpaper.GetRect()); } - drawinglayer::primitive2d::BasePrimitive2D* pBitmapWallpaperFill = + rtl::Reference<drawinglayer::primitive2d::BasePrimitive2D> pBitmapWallpaperFill = new drawinglayer::primitive2d::WallpaperBitmapPrimitive2D( aWallpaperRange, aBitmapEx, @@ -1114,7 +1114,7 @@ namespace wmfemfhelper TargetHolder& rTarget, PropertyHolder const & rProperty) { - drawinglayer::primitive2d::BasePrimitive2D* pResult = nullptr; + rtl::Reference<drawinglayer::primitive2d::BasePrimitive2D> pResult; const vcl::Font& rFont = rProperty.getFont(); basegfx::B2DVector aAlignmentOffset(0.0, 0.0); |