diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-26 16:22:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-30 08:21:01 +0200 |
commit | cfe896e7b811d4c2777531efcca8065a0d2fbf54 (patch) | |
tree | ff8688175a9cab2797bd4d0f8d4945b4b68f18d9 /sw/source/ui/frmdlg | |
parent | 95d7dc537e8979b67ed0928237404fd552880095 (diff) |
loplugin:useuniqueptr in SwGrfExtPage
Change-Id: Ic71cf09b6a443f6918b074010fe53ea0843bf246
Reviewed-on: https://gerrit.libreoffice.org/58238
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/frmdlg')
-rw-r--r-- | sw/source/ui/frmdlg/frmpage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index a0d58c8a34d9..8925187a4a7a 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -2406,7 +2406,7 @@ SwGrfExtPage::~SwGrfExtPage() void SwGrfExtPage::dispose() { - delete pGrfDlg; + pGrfDlg.reset(); m_pMirror.clear(); m_pMirrorVertBox.clear(); m_pMirrorHorzBox.clear(); @@ -2603,9 +2603,9 @@ IMPL_LINK_NOARG(SwGrfExtPage, BrowseHdl, Button*, void) { if(!pGrfDlg) { - pGrfDlg = new FileDialogHelper( + pGrfDlg.reset(new FileDialogHelper( ui::dialogs::TemplateDescription::FILEOPEN_LINK_PREVIEW, - FileDialogFlags::Graphic, GetFrameWeld()); + FileDialogFlags::Graphic, GetFrameWeld())); pGrfDlg->SetTitle(get<VclFrame>("linkframe")->get_label()); } pGrfDlg->SetDisplayDirectory( m_pConnectED->GetText() ); |