Kaydet (Commit) 47220de2 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SwGlossaryDlg

Change-Id: I46df74af9eae2cedc7121d6454e92faf03321c63
Reviewed-on: https://gerrit.libreoffice.org/58240
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c14b9ccc
......@@ -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());
......
......@@ -106,7 +106,7 @@ class SwGlossaryDlg : public SvxStandardDialog
OUString sReadonlyPath;
css::uno::Reference< css::text::XAutoTextContainer2 > m_xAutoText;
SwOneExampleFrame* pExampleFrame;
std::unique_ptr<SwOneExampleFrame> pExampleFrame;
SwGlossaryHdl* pGlossaryHdl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment