summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-20 15:44:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-21 08:27:00 +0200
commit655e6386a4805c33492478e0c4dfe2f291f8a273 (patch)
tree77743fb575bbff6278702206b98d66ec54e38738 /cui
parent6e6059599c70d8cba88afa0f3d9a43bea42ea4e1 (diff)
loplugin:useuniqueptr in SvxMacroTabPage_
Change-Id: I1720d624efee71611e8c2f7dab2aed22a0ecee10 Reviewed-on: https://gerrit.libreoffice.org/56192 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/macropg.cxx6
-rw-r--r--cui/source/inc/macropg.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx
index 6d87a95f73a5..dbba1ebe1aa2 100644
--- a/cui/source/customize/macropg.cxx
+++ b/cui/source/customize/macropg.cxx
@@ -220,7 +220,7 @@ SvxMacroTabPage_::SvxMacroTabPage_(vcl::Window* pParent, const OString& rID,
bAppEvents(false),
bInitialized(false)
{
- mpImpl = new SvxMacroTabPage_Impl( rAttrSet );
+ mpImpl.reset( new SvxMacroTabPage_Impl( rAttrSet ) );
}
SvxMacroTabPage_::~SvxMacroTabPage_()
@@ -230,7 +230,7 @@ SvxMacroTabPage_::~SvxMacroTabPage_()
void SvxMacroTabPage_::dispose()
{
- DELETEZ( mpImpl );
+ mpImpl.reset();
SfxTabPage::dispose();
}
@@ -571,7 +571,7 @@ IMPL_LINK_NOARG( SvxMacroTabPage_, DoubleClickHdl_Impl, SvTreeListBox*, bool)
// handler for double click on the listbox, and for the assign/delete buttons
void SvxMacroTabPage_::GenericHandler_Impl( SvxMacroTabPage_* pThis, PushButton* pBtn )
{
- SvxMacroTabPage_Impl* pImpl = pThis->mpImpl;
+ SvxMacroTabPage_Impl* pImpl = pThis->mpImpl.get();
SvHeaderTabListBox& rListBox = pImpl->pEventLB->GetListBox();
SvTreeListEntry* pE = rListBox.FirstSelected();
if( !pE || LISTBOX_ENTRY_NOTFOUND == rListBox.GetModel()->GetAbsPos( pE ) )
diff --git a/cui/source/inc/macropg.hxx b/cui/source/inc/macropg.hxx
index 040fcc7838d2..1144dc3d1898 100644
--- a/cui/source/inc/macropg.hxx
+++ b/cui/source/inc/macropg.hxx
@@ -65,7 +65,7 @@ class SvxMacroTabPage_ : public SfxTabPage
css::uno::Reference< css::container::XNameReplace > m_xAppEvents;
protected:
- SvxMacroTabPage_Impl* mpImpl;
+ std::unique_ptr<SvxMacroTabPage_Impl> mpImpl;
css::uno::Reference< css::container::XNameReplace > m_xDocEvents;
css::uno::Reference< css::util::XModifiable > m_xModifiable;
EventsHash m_appEventsHash;