[Libreoffice-commits] core.git: cui/source
Noel Grandin
noel.grandin at collabora.co.uk
Wed Jun 20 09:18:00 UTC 2018
cui/source/options/fontsubs.cxx | 3 +--
cui/source/options/fontsubs.hxx | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
New commits:
commit cb5c2d204b5dde6eff5d9ecfe46701eb8a82896f
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date: Mon Jun 11 15:15:32 2018 +0200
loplugin:useuniqueptr in SvxFontSubstTabPage
Change-Id: I3e9e1c91f541c7e191ceb3d7ee6974fa46d26c6b
Reviewed-on: https://gerrit.libreoffice.org/56101
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list