diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-26 15:20:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-30 08:20:02 +0200 |
commit | 9b7c875440d473aa914962d3a602b652722d30e8 (patch) | |
tree | 57085c5b8c66d5d5bb07e5fa3d54334516fa4a65 /sw | |
parent | c6b23dbf3deec12a5da71b2e310b80ccb8ef0ff9 (diff) |
loplugin:useuniqueptr in SwLabDlg
Change-Id: Ie2a54b88e821041ecea6c84ea402486a76ba1f31
Reviewed-on: https://gerrit.libreoffice.org/58233
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/envelp/label1.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/label.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
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<sal_uInt16> aTypeIds; std::vector<OUString> aMakes; - SwLabRecs* m_pRecs; + std::unique_ptr<SwLabRecs> m_pRecs; OUString aLstGroup; OUString m_sBusinessCardDlg; bool m_bLabel; |