diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-21 15:30:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-25 13:57:36 +0200 |
commit | b4fc996520b47a6212661a9de3a1c72ccfc379a4 (patch) | |
tree | 2dcb66d687dcdd1d91a75f9e498ca04742a7c564 /sd/source/ui/view | |
parent | c30bdfbd22807e3f0c77f13a246ec243153ad7ae (diff) |
loplugin:useuniqueptr in SdrHdlList
Change-Id: I83241bd2ed172594704f4b115b584dc39b234086
Reviewed-on: https://gerrit.libreoffice.org/60959
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r-- | sd/source/ui/view/viewoverlaymanager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx index 0e3b48ca369a..9331b53d50f9 100644 --- a/sd/source/ui/view/viewoverlaymanager.cxx +++ b/sd/source/ui/view/viewoverlaymanager.cxx @@ -387,13 +387,13 @@ void ChangePlaceholderTag::addCustomHandles( SdrHdlList& rHandlerList ) aPos.AdjustX( -(all_width >> 1) ); aPos.AdjustY( -(all_height >> 1) ); - ImageButtonHdl* pHdl = new ImageButtonHdl( xThis, aPoint ); + std::unique_ptr<ImageButtonHdl> pHdl(new ImageButtonHdl( xThis, aPoint )); pHdl->SetObjHdlNum( SMART_TAG_HDL_NUM ); pHdl->SetPageView( mrView.GetSdrPageView() ); pHdl->SetPos( aPos ); - rHandlerList.AddHdl( pHdl ); + rHandlerList.AddHdl( std::move(pHdl) ); } } |