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

loplugin:useuniqueptr in SwMailMergeLayoutPage

Change-Id: Ia8411b8efa792fe06f25765a2aa4d479c66f1ec5
Reviewed-on: https://gerrit.libreoffice.org/58249
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst fe7bea05
......@@ -123,8 +123,8 @@ SwMailMergeLayoutPage::SwMailMergeLayoutPage( SwMailMergeWizard* _pParent) :
xStore->storeToURL( m_sExampleURL, aValues );
Link<SwOneExampleFrame&,void> aLink(LINK(this, SwMailMergeLayoutPage, PreviewLoadedHdl_Impl));
m_pExampleFrame = new SwOneExampleFrame( *m_pExampleContainerWIN,
EX_SHOW_DEFAULT_PAGE, &aLink, &m_sExampleURL );
m_pExampleFrame.reset( new SwOneExampleFrame( *m_pExampleContainerWIN,
EX_SHOW_DEFAULT_PAGE, &aLink, &m_sExampleURL ) );
m_pExampleContainerWIN->Show(false);
......@@ -165,7 +165,7 @@ SwMailMergeLayoutPage::~SwMailMergeLayoutPage()
void SwMailMergeLayoutPage::dispose()
{
delete m_pExampleFrame;
m_pExampleFrame.reset();
File::remove( m_sExampleURL );
m_pPosition.clear();
m_pAlignToBodyCB.clear();
......
......@@ -52,7 +52,7 @@ class SwMailMergeLayoutPage : public svt::OWizardPage
VclPtr<ListBox> m_pZoomLB;
SwOneExampleFrame* m_pExampleFrame;
std::unique_ptr<SwOneExampleFrame> m_pExampleFrame;
SwWrtShell* m_pExampleWrtShell;
OUString m_sExampleURL;
......
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