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

loplugin:useuniqueptr in SwGrfExtPage

Change-Id: Ic71cf09b6a443f6918b074010fe53ea0843bf246
Reviewed-on: https://gerrit.libreoffice.org/58238
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 95d7dc53
......@@ -110,6 +110,12 @@ public:
// SfxObjectShell::pMedium
if (fn == SRCDIR "/sfx2/source/doc/objxtor.cxx")
return;
// various
if (fn == SRCDIR "/sw/source/filter/ww8/wrtww8.cxx")
return;
// WW8TabBandDesc
if (fn == SRCDIR "/sw/source/filter/ww8/ww8par2.cxx")
return;
TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
}
......
......@@ -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() );
......
......@@ -222,7 +222,7 @@ class SwGrfExtPage: public SfxTabPage
OUString aFilterName;
OUString aGrfName, aNewGrfName;
::sfx2::FileDialogHelper* pGrfDlg;
std::unique_ptr<::sfx2::FileDialogHelper> pGrfDlg;
bool bHtmlMode;
......
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