summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-26 15:10:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-30 08:19:16 +0200
commitbf3421c5942639b5dd3c82b35108384ef6b9f392 (patch)
tree838a15a6c8fc7eb1e19fb2c74a55cf63a451c03d
parentcecb480b91688567f5f0f91568ceecd53835f46a (diff)
loplugin:useuniqueptr in SwCaptionOptPage
Change-Id: I6e3391be26e6442ab13cc3d6d9da6e6909d68707 Reviewed-on: https://gerrit.libreoffice.org/58228 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sw/source/ui/config/optload.cxx2
-rw-r--r--sw/source/uibase/inc/optload.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index dc05b9f35417..faec48efbde8 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -562,7 +562,7 @@ SwCaptionOptPage::~SwCaptionOptPage()
void SwCaptionOptPage::dispose()
{
DelUserData();
- delete pMgr;
+ pMgr.reset();
m_pCheckLB.clear();
m_pLbCaptionOrder.clear();
m_pPreview.clear();
diff --git a/sw/source/uibase/inc/optload.hxx b/sw/source/uibase/inc/optload.hxx
index ef6f828b67e9..e8a8169abe8e 100644
--- a/sw/source/uibase/inc/optload.hxx
+++ b/sw/source/uibase/inc/optload.hxx
@@ -180,7 +180,7 @@ private:
OUString m_sNone;
- SwFieldMgr* pMgr;
+ std::unique_ptr<SwFieldMgr> pMgr;
bool bHTMLMode;
TextFilterAutoConvert m_aTextFilter;