From d1e47b1428abf1732ab4d5e219b210760d4152e0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 22 May 2017 13:25:58 +0200 Subject: enhance useuniqueptr loplugin teach it to look for the following sequence in a destructor: delete m_pfoo; m_pfoo = nullptr; Change-Id: Icd6271a63a024e32b53cc9e599f8f59952160380 Reviewed-on: https://gerrit.libreoffice.org/37900 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/core/inc/DocumentLayoutManager.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/source/core/inc/DocumentLayoutManager.hxx') diff --git a/sw/source/core/inc/DocumentLayoutManager.hxx b/sw/source/core/inc/DocumentLayoutManager.hxx index 780ca1ff988e..c9813dbf819a 100644 --- a/sw/source/core/inc/DocumentLayoutManager.hxx +++ b/sw/source/core/inc/DocumentLayoutManager.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTLAYOUTMANAGER_HXX #include +#include class SwDoc; class SwViewShell; @@ -64,7 +65,7 @@ private: SwDoc& m_rDoc; SwViewShell *mpCurrentView; //< SwDoc should get a new member mpCurrentView - SwLayouter *mpLayouter; /**< css::frame::Controller for complex layout formatting + std::unique_ptr mpLayouter; /**< css::frame::Controller for complex layout formatting like footnote/endnote in sections */ }; -- cgit