diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-04 13:37:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-05 09:32:36 +0200 |
commit | 1800cac964c145d9aa7e0048e0e545463901a03c (patch) | |
tree | 266f714ef08c01a48e0c1cf267c8a4e05d1dfb75 /svx | |
parent | d2b3ea4d377bf05830f6eb11d53fd55ea6b435fc (diff) |
loplugin:useuniqueptr in ViewObjectContactOfPageObj
Change-Id: I4f7af7bb8da2b4bfb27ab7cf748677fc3fa6fdbc
Reviewed-on: https://gerrit.libreoffice.org/60004
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontactofpageobj.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx index db64344e0447..e22cbc184891 100644 --- a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx @@ -313,13 +313,11 @@ ViewObjectContactOfPageObj::~ViewObjectContactOfPageObj() { // remember candidate and reset own pointer to avoid action when createPrimitive2DSequence() // would be called for any reason - PagePrimitiveExtractor* pCandidate = mpExtractor; - mpExtractor = nullptr; + std::unique_ptr<PagePrimitiveExtractor> pCandidate = std::move(mpExtractor); // also reset the StartPage to avoid ActionChanged() forwardings in the // PagePrimitiveExtractor::InvalidatePartOfView() implementation pCandidate->SetStartPage(nullptr); - delete pCandidate; } } |