From 7a60e90ef05c84923f83882efc01c33fef1ed305 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Jan 2017 14:15:13 +0200 Subject: new loplugin: useuniqueptr: helpcompiler..io Change-Id: I6b394163c144e6b5540cb160abb613d56fe327de Reviewed-on: https://gerrit.libreoffice.org/33165 Tested-by: Jenkins Reviewed-by: Noel Grandin --- helpcompiler/inc/HelpLinker.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'helpcompiler/inc') diff --git a/helpcompiler/inc/HelpLinker.hxx b/helpcompiler/inc/HelpLinker.hxx index 8be1b4a49889..7fce510bb774 100644 --- a/helpcompiler/inc/HelpLinker.hxx +++ b/helpcompiler/inc/HelpLinker.hxx @@ -61,7 +61,6 @@ public: {} ~HelpLinker() { - delete m_pIndexerPreProcessor; } private: @@ -82,7 +81,7 @@ private: std::string extensionDestination; bool bExtensionMode; fs::path indexDirParentName; - IndexerPreProcessor* m_pIndexerPreProcessor; + std::unique_ptr m_pIndexerPreProcessor; bool m_bUseLangRoot; bool m_bCreateIndex; void initIndexerPreProcessor(); -- cgit