diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-28 11:59:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-04 08:37:22 +0200 |
commit | 5848eb908fadd8ff8ab73bbbbee1df9743ffb60f (patch) | |
tree | d10b3f3e6a0fdf611ac7d12f0f98e9f991c8b2a0 /svx/source/inc | |
parent | 02180aa060fce0bea6bc8483acd7ac27f4979e25 (diff) |
loplugin:useuniqueptr in NavigatorTree
Change-Id: I76930b64f873ecb6b70fed4d78199d43bc4edcff
Reviewed-on: https://gerrit.libreoffice.org/55222
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/inc')
-rw-r--r-- | svx/source/inc/fmexpl.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx index 0d01abb9e2e9..f681edc26ffb 100644 --- a/svx/source/inc/fmexpl.hxx +++ b/svx/source/inc/fmexpl.hxx @@ -386,7 +386,7 @@ namespace svxform ::svxform::OControlExchangeHelper m_aControlExchange; - NavigatorTreeModel* m_pNavModel; + std::unique_ptr<NavigatorTreeModel> m_pNavModel; SvTreeListEntry* m_pRootEntry; SvTreeListEntry* m_pEditEntry; @@ -479,7 +479,7 @@ namespace svxform OUString GenerateName( FmEntryData const * pEntryData ); - NavigatorTreeModel* GetNavModel() const { return m_pNavModel; } + NavigatorTreeModel* GetNavModel() const { return m_pNavModel.get(); } SvTreeListEntry* FindEntry( FmEntryData* pEntryData ); virtual bool EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewText ) override; |