diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-26 16:39:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-30 08:21:19 +0200 |
commit | 47220de23b44aacf2bf3a1eff592972c3d1da2fc (patch) | |
tree | 73fcfee2caa989b92c188b5efa3ba890c5f018e8 /sw/source/ui/misc | |
parent | c14b9ccc3d274644a721398edc7e336b5463cf81 (diff) |
loplugin:useuniqueptr in SwGlossaryDlg
Change-Id: I46df74af9eae2cedc7121d6454e92faf03321c63
Reviewed-on: https://gerrit.libreoffice.org/58240
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index a7badfffdfea..386377e6c476 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -247,7 +247,7 @@ SwGlossaryDlg::~SwGlossaryDlg() void SwGlossaryDlg::dispose() { m_pCategoryBox->Clear(); - delete pExampleFrame; + pExampleFrame.reset(); m_pInsertTipCB.clear(); m_pNameED.clear(); m_pShortNameLbl.clear(); @@ -1067,8 +1067,8 @@ void SwGlossaryDlg::ShowPreview() if (!pExampleFrame) { Link<SwOneExampleFrame&,void> aLink(LINK(this, SwGlossaryDlg, PreviewLoadedHdl)); - pExampleFrame = new SwOneExampleFrame( *m_pExampleWIN, - EX_SHOW_ONLINE_LAYOUT, &aLink ); + pExampleFrame.reset(new SwOneExampleFrame( *m_pExampleWIN, + EX_SHOW_ONLINE_LAYOUT, &aLink )); } ShowAutoText(::GetCurrGlosGroup(), m_pShortNameEdit->GetText()); |