diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-11 15:15:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-20 11:17:35 +0200 |
commit | cb5c2d204b5dde6eff5d9ecfe46701eb8a82896f (patch) | |
tree | d1f3c92d4f4f62e79b3a926d97b85aee70de94b7 | |
parent | cebcb879c169171f9c1306999e3843d081f4c2ce (diff) |
loplugin:useuniqueptr in SvxFontSubstTabPage
Change-Id: I3e9e1c91f541c7e191ceb3d7ee6974fa46d26c6b
Reviewed-on: https://gerrit.libreoffice.org/56101
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | cui/source/options/fontsubs.cxx | 3 | ||||
-rw-r--r-- | cui/source/options/fontsubs.hxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx index 70051b6d69aa..ce5dd9668c30 100644 --- a/cui/source/options/fontsubs.cxx +++ b/cui/source/options/fontsubs.cxx @@ -139,8 +139,7 @@ SvxFontSubstTabPage::~SvxFontSubstTabPage() void SvxFontSubstTabPage::dispose() { m_xCheckButtonData.reset(); - delete pConfig; - pConfig = nullptr; + pConfig.reset(); m_pCheckLB.disposeAndClear(); m_pUseTableCB.clear(); m_pReplacements.clear(); diff --git a/cui/source/options/fontsubs.hxx b/cui/source/options/fontsubs.hxx index 3c7e30ca338e..03fc4d03aba6 100644 --- a/cui/source/options/fontsubs.hxx +++ b/cui/source/options/fontsubs.hxx @@ -75,7 +75,7 @@ class SvxFontSubstTabPage : public SfxTabPage OUString m_sAutomatic; - SvtFontSubstConfig* pConfig; + std::unique_ptr<SvtFontSubstConfig> pConfig; Color aTextColor; |