From e4e4d5713e248f02faf7aa6199b11e152973de8e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 31 May 2017 15:40:25 +0200 Subject: clang-tidy readability-delete-null-pointer which in turn triggered some loplugin:useuniqueptr Change-Id: I0c38561fc9b68dac44e8cf58c8aa1f582196cc64 Reviewed-on: https://gerrit.libreoffice.org/38281 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx | 3 ++- include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include/drawinglayer') diff --git a/include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx b/include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx index 42bfd7348437..eea2f2f932b4 100644 --- a/include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx +++ b/include/drawinglayer/primitive3d/sdrextrudeprimitive3d.hxx @@ -24,6 +24,7 @@ #include #include +#include namespace drawinglayer @@ -55,7 +56,7 @@ namespace drawinglayer double mfBackScale; /// decomposition data when ReducedLineGeometry is used, see get3DDecomposition - geometry::ViewInformation3D* mpLastRLGViewInformation; + std::unique_ptr mpLastRLGViewInformation; bool mbSmoothNormals : 1; // Plane self bool mbSmoothLids : 1; // Front/back diff --git a/include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx b/include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx index a26aea5a5cd9..da713c1663fb 100644 --- a/include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx +++ b/include/drawinglayer/primitive3d/sdrlatheprimitive3d.hxx @@ -24,6 +24,7 @@ #include #include +#include namespace drawinglayer @@ -57,7 +58,7 @@ namespace drawinglayer double mfRotation; /// decomposition data when ReducedLineGeometry is used, see get3DDecomposition - geometry::ViewInformation3D* mpLastRLGViewInformation; + std::unique_ptr mpLastRLGViewInformation; bool mbSmoothNormals : 1; // Plane self bool mbSmoothLids : 1; // Front/back -- cgit