summaryrefslogtreecommitdiff
path: root/cui/source/options/fontsubs.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-11 15:15:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-20 11:17:35 +0200
commitcb5c2d204b5dde6eff5d9ecfe46701eb8a82896f (patch)
treed1f3c92d4f4f62e79b3a926d97b85aee70de94b7 /cui/source/options/fontsubs.cxx
parentcebcb879c169171f9c1306999e3843d081f4c2ce (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>
Diffstat (limited to 'cui/source/options/fontsubs.cxx')
-rw-r--r--cui/source/options/fontsubs.cxx3
1 files changed, 1 insertions, 2 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();