diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-16 14:15:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 08:34:42 +0000 |
commit | 7a60e90ef05c84923f83882efc01c33fef1ed305 (patch) | |
tree | 4c49f1ab14fda2a79e0d8efdb731d4d6fe924eba /helpcompiler/inc | |
parent | a9367c1b39600d5a5e2d0067113f06ad59cc37a1 (diff) |
new loplugin: useuniqueptr: helpcompiler..io
Change-Id: I6b394163c144e6b5540cb160abb613d56fe327de
Reviewed-on: https://gerrit.libreoffice.org/33165
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'helpcompiler/inc')
-rw-r--r-- | helpcompiler/inc/HelpLinker.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
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<IndexerPreProcessor> m_pIndexerPreProcessor; bool m_bUseLangRoot; bool m_bCreateIndex; void initIndexerPreProcessor(); |