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

loplugin:useuniqueptr in SvxSearchFormatDialog

Change-Id: Ie7da9255e27734f93f7a7758ca9ec25108c0e547
Reviewed-on: https://gerrit.libreoffice.org/56104
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 6349cee0
......@@ -65,8 +65,7 @@ SvxSearchFormatDialog::~SvxSearchFormatDialog()
void SvxSearchFormatDialog::dispose()
{
delete m_pFontList;
m_pFontList = nullptr;
m_pFontList.reset();
SfxTabDialog::dispose();
}
......@@ -90,8 +89,8 @@ void SvxSearchFormatDialog::PageCreated( sal_uInt16 nId, SfxTabPage& rPage )
if ( !pList )
{
if ( !m_pFontList )
m_pFontList = new FontList( this );
pList = m_pFontList;
m_pFontList.reset( new FontList( this ) );
pList = m_pFontList.get();
}
if ( pList )
......
......@@ -38,7 +38,7 @@ protected:
virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) override;
private:
FontList* m_pFontList;
std::unique_ptr<FontList> m_pFontList;
sal_uInt16 m_nNamePageId;
sal_uInt16 m_nParaStdPageId;
sal_uInt16 m_nParaAlignPageId;
......
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