From 9b7c875440d473aa914962d3a602b652722d30e8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 Jul 2018 15:20:02 +0200 Subject: loplugin:useuniqueptr in SwLabDlg Change-Id: Ie2a54b88e821041ecea6c84ea402486a76ba1f31 Reviewed-on: https://gerrit.libreoffice.org/58233 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/ui/envelp/label1.cxx | 2 +- sw/source/uibase/inc/label.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx index b4e8de82bac9..d7eadfdce5c1 100644 --- a/sw/source/ui/envelp/label1.cxx +++ b/sw/source/ui/envelp/label1.cxx @@ -163,7 +163,7 @@ SwLabDlg::SwLabDlg(weld::Window* pParent, const SfxItemSet& rSet, SwLabDlg::~SwLabDlg() { - delete m_pRecs; + m_pRecs.reset(); } void SwLabDlg::GetLabItem(SwLabItem &rItem) diff --git a/sw/source/uibase/inc/label.hxx b/sw/source/uibase/inc/label.hxx index fdb099cc24e6..a0471ceaafc9 100644 --- a/sw/source/uibase/inc/label.hxx +++ b/sw/source/uibase/inc/label.hxx @@ -38,7 +38,7 @@ class SwLabDlg : public SfxTabDialogController std::vector aTypeIds; std::vector aMakes; - SwLabRecs* m_pRecs; + std::unique_ptr m_pRecs; OUString aLstGroup; OUString m_sBusinessCardDlg; bool m_bLabel; -- cgit